git.iko.soy/typeable/nixpkgs
on master help sign in
gcc_multi: disable the hook moving lib64 to lib

This was preventing wine from build, and we typically don't want it anyway in multilib builds. /cc #8706.

commit615f64dcbe6de193a9c3b0e03591fe623fecaeb1 authorVladimír Čunát <vcunat@gmail.com> dateMon 20 Jul 2015, 13:42 (11 years ago) parent855b3c4
2 files changed+12−7
pkgs/build-support/cc-wrapper/default.nix+3−2 pkgs/top-level/all-packages.nix+9−5
pkgs/build-support/cc-wrapper/default.nix+3−2
@@ -7,7 +7,7 @@
77
88{ name ? "", stdenv, nativeTools, nativeLibc, nativePrefix ? ""
99, cc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
10−, zlib ? null, extraPackages ? []
10+, zlib ? null, extraPackages ? [], extraBuildCommands ? ""
1111, dyld ? null # TODO: should this be a setup-hook on dyld?
1212, isGNU ? false, isClang ? false
1313}:
@@ -232,7 +232,8 @@ stdenv.mkDerivation {
232232
233233 substituteAll ${./add-flags} $out/nix-support/add-flags.sh
234234 cp -p ${./utils.sh} $out/nix-support/utils.sh
235− '';
235+ ''
236+ + extraBuildCommands;
236237
237238 # The dynamic linker has different names on different Linux platforms.
238239 dynamicLinker =
pkgs/top-level/all-packages.nix+9−5
@@ -3687,8 +3687,12 @@ let
36873687
36883688 gcc_multi =
36893689 if system == "x86_64-linux" then lowPrio (
3690− wrapCCWith (import ../build-support/cc-wrapper) glibc_multi (gcc.cc.override {
3691− stdenv = overrideCC stdenv (wrapCCWith (import ../build-support/cc-wrapper) glibc_multi gcc.cc);
3690+ let
3691+ extraBuildCommands = ''
3692+ echo "dontMoveLib64=1" >> $out/nix-support/setup-hook
3693+ '';
3694+ in wrapCCWith (import ../build-support/cc-wrapper) glibc_multi extraBuildCommands (gcc.cc.override {
3695+ stdenv = overrideCC stdenv (wrapCCWith (import ../build-support/cc-wrapper) glibc_multi "" gcc.cc);
36923696 profiledCompiler = false;
36933697 enableMultilib = true;
36943698 }))
@@ -4741,7 +4745,7 @@ let
47414745
47424746 win32hello = callPackage ../development/compilers/visual-c++/test { };
47434747
4744− wrapCCWith = ccWrapper: libc: baseCC: ccWrapper {
4748+ wrapCCWith = ccWrapper: libc: extraBuildCommands: baseCC: ccWrapper {
47454749 nativeTools = stdenv.cc.nativeTools or false;
47464750 nativeLibc = stdenv.cc.nativeLibc or false;
47474751 nativePrefix = stdenv.cc.nativePrefix or "";
@@ -4750,10 +4754,10 @@ let
47504754 dyld = if stdenv.isDarwin then darwin.dyld else null;
47514755 isGNU = baseCC.isGNU or false;
47524756 isClang = baseCC.isClang or false;
4753− inherit stdenv binutils coreutils zlib;
4757+ inherit stdenv binutils coreutils zlib extraBuildCommands;
47544758 };
47554759
4756− wrapCC = wrapCCWith (makeOverridable (import ../build-support/cc-wrapper)) stdenv.cc.libc;
4760+ wrapCC = wrapCCWith (makeOverridable (import ../build-support/cc-wrapper)) stdenv.cc.libc "";
47574761 # legacy version, used for gnat bootstrapping
47584762 wrapGCC-old = baseGCC: (makeOverridable (import ../build-support/gcc-wrapper-old)) {
47594763 nativeTools = stdenv.cc.nativeTools or false;