summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-05-24 21:45:49 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-05-24 21:45:49 +0000
commite9186a03b9eba84b830de16d341f3caedcac8ba7 (patch)
tree029bb3d5958323e548ce1b73ed0a40f11c59cd26 /pkgs/development/compilers
parent5aa41fb2ef9f6d49df859b746164a1363797bc04 (diff)
downloadnixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.tar
nixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.tar.gz
nixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.tar.bz2
nixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.tar.lz
nixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.tar.xz
nixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.tar.zst
nixpkgs-e9186a03b9eba84b830de16d341f3caedcac8ba7.zip
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
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/gcc/4.6/default.nix5
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 b47a9457077..ae626e21804 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)