forked from mirrors/nixpkgs
libstdc++5: Fix after binutils-wrapper
Will need to be editted again to work for cross
This commit is contained in:
parent
12e0672d88
commit
26a5612aeb
|
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
|
||||||
# being generated to make sure that they use our glibc.
|
# being generated to make sure that they use our glibc.
|
||||||
EXTRA_FLAGS="-I$NIX_FIXINC_DUMMY $(cat $NIX_CC/nix-support/libc-cflags) -O2"
|
EXTRA_FLAGS="-I$NIX_FIXINC_DUMMY $(cat $NIX_CC/nix-support/libc-cflags) -O2"
|
||||||
|
|
||||||
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)"
|
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $(cat $NIX_BINTOOLS/nix-support/libc-ldflags) $(cat $NIX_BINTOOLS/nix-support/libc-ldflags-before)"
|
||||||
for i in $extraLDFlags; do
|
for i in $extraLDFlags; do
|
||||||
EXTRA_FLAGS="$EXTRA_FLAGS -Wl,$i"
|
EXTRA_FLAGS="$EXTRA_FLAGS -Wl,$i"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue