gcc: Don't symlink lib and lib64 when building multilib

This commit is contained in:
Shea Levy 2013-02-16 18:54:47 -05:00
parent 0489661dd1
commit f081cacda7
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -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";