From f081cacda7b8494301401120b9e649cf23b309eb Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 16 Feb 2013 18:54:47 -0500 Subject: [PATCH] gcc: Don't symlink lib and lib64 when building multilib --- pkgs/development/compilers/gcc/4.6/builder.sh | 2 +- pkgs/development/compilers/gcc/4.6/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/gcc/4.6/builder.sh b/pkgs/development/compilers/gcc/4.6/builder.sh index 2bb18541739..bdf15be5a99 100644 --- a/pkgs/development/compilers/gcc/4.6/builder.sh +++ b/pkgs/development/compilers/gcc/4.6/builder.sh @@ -198,7 +198,7 @@ postConfigure() { preInstall() { # Make ‘lib64’ a symlink to ‘lib’. - if [ -n "$is64bit" ]; then + if [ -n "$is64bit" -a -z "$enableMultilib" ]; then mkdir -p $out/lib ln -s lib $out/lib64 fi diff --git a/pkgs/development/compilers/gcc/4.6/default.nix b/pkgs/development/compilers/gcc/4.6/default.nix index dc5c32bde8f..d95e161ba23 100644 --- a/pkgs/development/compilers/gcc/4.6/default.nix +++ b/pkgs/development/compilers/gcc/4.6/default.nix @@ -192,7 +192,7 @@ stdenv.mkDerivation ({ inherit langC langCC langFortran langJava langAda langGo; }; - inherit patches; + inherit patches enableMultilib; postPatch = if (stdenv.isGNU @@ -431,7 +431,7 @@ stdenv.mkDerivation ({ else null; passthru = { inherit langC langCC langAda langFortran langVhdl - langGo enableMultilib version; }; + langGo version; }; enableParallelBuilding = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d90ae101f50..a582586a600 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2133,7 +2133,7 @@ let gcc46_multi = if system == "x86_64-linux" then lowPrio ( wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi (gcc46.gcc.override { - stdenv = overrideGCC stdenv (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi gcc); + stdenv = overrideGCC stdenv (wrapGCCWith (import ../build-support/gcc-wrapper) glibc_multi gcc.gcc); profiledCompiler = false; enableMultilib = true; })) else throw "Multilib gcc not supported on this system";