diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-05-24 21:45:49 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-05-24 21:45:49 +0000 |
commit | e9186a03b9eba84b830de16d341f3caedcac8ba7 (patch) | |
tree | 029bb3d5958323e548ce1b73ed0a40f11c59cd26 | |
parent | 5aa41fb2ef9f6d49df859b746164a1363797bc04 (diff) |
Making gcc not build libgomp with uclibc, as it lacks '-ldl' in its checks and
I don't know how to add it.
This makes gcc build with uclibc.
svn path=/nixpkgs/trunk/; revision=34231
-rw-r--r-- | pkgs/development/compilers/gcc/4.6/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/4.6/default.nix b/pkgs/development/compilers/gcc/4.6/default.nix index b47a9457077c..ae626e21804e 100644 --- a/pkgs/development/compilers/gcc/4.6/default.nix +++ b/pkgs/development/compilers/gcc/4.6/default.nix @@ -135,7 +135,10 @@ let version = "4.6.3"; # In any case, g++ linking is broken by default with shared libs, # unless adding "-lsupc++" to any linking command. I don't know why. " --disable-shared" - else + else (if cross.libc == "uclibc" then + # In uclibc cases, libgomp needs an additional '-ldl' + # and as I don't know how to pass it, I disable libgomp. + " --disable-libgomp" else "") + " --enable-threads=posix" + " --enable-nls" + " --disable-decimal-float") # No final libdecnumber (it may work only in 386) |