2016-02-05 10:59:18 +00:00
|
|
|
# `-B@out@/bin' forces cc to use ld-wrapper.sh when calling ld.
|
2014-12-14 15:22:04 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="-B@out@/bin/ $NIX_CFLAGS_COMPILE"
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/libc-cflags; then
|
|
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/libc-cflags) $NIX_CFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
2016-02-05 10:59:18 +00:00
|
|
|
if test -e @out@/nix-support/cc-cflags; then
|
|
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/cc-cflags) $NIX_CFLAGS_COMPILE"
|
2014-12-14 15:22:04 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/gnat-cflags; then
|
|
|
|
export NIX_GNATFLAGS_COMPILE="$(cat @out@/nix-support/gnat-cflags) $NIX_GNATFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/libc-ldflags; then
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/libc-ldflags)"
|
|
|
|
fi
|
|
|
|
|
2016-02-05 10:59:18 +00:00
|
|
|
if test -e @out@/nix-support/cc-ldflags; then
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/cc-ldflags)"
|
2014-12-14 15:22:04 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/libc-ldflags-before; then
|
|
|
|
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
|