2008-06-26 15:07:46 +04:00
|
|
|
# `-B@out@/bin' forces gcc 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/gcc-cflags; then
|
|
|
|
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/gcc-cflags) $NIX_CFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
2010-01-17 00:32:44 +03:00
|
|
|
if test -e @out@/nix-support/gnat-cflags; then
|
|
|
|
export NIX_GNATFLAGS_COMPILE="$(cat @out@/nix-support/gnat-cflags) $NIX_GNATFLAGS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
2009-02-02 00:26:28 +03:00
|
|
|
if test -e @out@/nix-support/libc-ldflags; then
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/libc-ldflags)"
|
|
|
|
fi
|
|
|
|
|
2008-06-26 15:07:46 +04:00
|
|
|
if test -e @out@/nix-support/gcc-ldflags; then
|
2009-02-02 00:26:28 +03:00
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(cat @out@/nix-support/gcc-ldflags)"
|
2008-06-26 15:07:46 +04: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
|
|
|
|
|
|
|
|
export NIX_GCC_WRAPPER_FLAGS_SET=1
|