2016-02-05 10:59:18 +00:00
|
|
|
# `-B@out@/bin' forces cc to use ld-wrapper.sh when calling ld.
|
2008-06-26 12:07:46 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="-B@out@/bin/ $NIX_CFLAGS_COMPILE"
|
|
|
|
|
2014-10-10 13:25:23 +01:00
|
|
|
if [ -e @out@/nix-support/libc-cflags ]; then
|
2008-06-26 12:07:46 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/libc-cflags) $NIX_CFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
2016-02-05 10:59:18 +00:00
|
|
|
if [ -e @out@/nix-support/cc-cflags ]; then
|
2015-01-09 19:22:12 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/cc-cflags) $NIX_CFLAGS_COMPILE"
|
2008-06-26 12:07:46 +01:00
|
|
|
fi
|
|
|
|
|
2014-10-10 13:25:23 +01:00
|
|
|
if [ -e @out@/nix-support/gnat-cflags ]; then
|
2010-01-16 21:32:44 +00:00
|
|
|
export NIX_GNATFLAGS_COMPILE="$(cat @out@/nix-support/gnat-cflags) $NIX_GNATFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
2014-10-10 13:25:23 +01:00
|
|
|
if [ -e @out@/nix-support/libc-ldflags ]; then
|
2014-10-10 14:23:16 +01:00
|
|
|
export NIX_LDFLAGS+=" $(cat @out@/nix-support/libc-ldflags)"
|
2009-02-01 21:26:28 +00:00
|
|
|
fi
|
|
|
|
|
2016-02-05 10:59:18 +00:00
|
|
|
if [ -e @out@/nix-support/cc-ldflags ]; then
|
2015-01-09 19:22:12 +00:00
|
|
|
export NIX_LDFLAGS+=" $(cat @out@/nix-support/cc-ldflags)"
|
2008-06-26 12:07:46 +01:00
|
|
|
fi
|
|
|
|
|
2014-10-10 13:25:23 +01:00
|
|
|
if [ -e @out@/nix-support/libc-ldflags-before ]; then
|
2008-06-26 12:07:46 +01:00
|
|
|
export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE"
|
|
|
|
fi
|
|
|
|
|
2014-12-17 18:11:30 +00:00
|
|
|
export NIX_CC_WRAPPER_FLAGS_SET=1
|