2011-10-18 22:03:09 +02:00
|
|
|
# `-B@out@/bin' forces clang to use ld-wrapper.sh when calling ld.
|
|
|
|
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
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/clang-cflags; then
|
|
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/clang-cflags) $NIX_CFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/libc-ldflags; then
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/libc-ldflags)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e @out@/nix-support/clang-ldflags; then
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/clang-ldflags)"
|
|
|
|
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-07-02 20:10:40 +02:00
|
|
|
export NIX_GCC_WRAPPER_FLAGS_SET=1
|