mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
a4f9b9c8b5
Having a separate clang-wrapper is really unfortunate because it
means that we'll forever forget to apply changes to both (e.g.
commit 289895fe2c
). This commit
gets rid of the redundant copies of ld-wrapper.sh and utils.sh.
24 lines
860 B
Text
24 lines
860 B
Text
# `-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
|
|
|
|
export NIX_GCC_WRAPPER_FLAGS_SET=1
|