parent
e1baed0143
commit
64b3350537
@ -31,22 +31,6 @@ callPackage ./common.nix { inherit stdenv; } {
|
|||||||
# does not work.
|
# does not work.
|
||||||
hardeningDisable = [ "stackprotector" "fortify" ];
|
hardeningDisable = [ "stackprotector" "fortify" ];
|
||||||
|
|
||||||
# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
|
|
||||||
# any program we run, because the gcc will have been placed at a new
|
|
||||||
# store path than that determined when built (as a source for the
|
|
||||||
# bootstrap-tools tarball)
|
|
||||||
# Building from a proper gcc staying in the path where it was installed,
|
|
||||||
# libgcc_s will not be at {gcc}/lib, and gcc's libgcc will be found without
|
|
||||||
# any special hack.
|
|
||||||
preInstall = ''
|
|
||||||
if [ -f ${stdenv.cc.cc}/lib/libgcc_s.so.1 ]; then
|
|
||||||
mkdir -p $out/lib
|
|
||||||
cp ${stdenv.cc.cc}/lib/libgcc_s.so.1 $out/lib/libgcc_s.so.1
|
|
||||||
# the .so It used to be a symlink, but now it is a script
|
|
||||||
cp -a ${stdenv.cc.cc}/lib/libgcc_s.so $out/lib/libgcc_s.so
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
if test -n "$installLocales"; then
|
if test -n "$installLocales"; then
|
||||||
make -j''${NIX_BUILD_CORES:-1} -l''${NIX_BUILD_CORES:-1} localedata/install-locales
|
make -j''${NIX_BUILD_CORES:-1} -l''${NIX_BUILD_CORES:-1} localedata/install-locales
|
||||||
|
Loading…
x
Reference in New Issue
Block a user