From e9186a03b9eba84b830de16d341f3caedcac8ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 24 May 2012 21:45:49 +0000 Subject: 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 --- pkgs/development/compilers/gcc/4.6/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs') 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) -- cgit v1.2.3