git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17461 from rasendubi/powerpc

cross-compilation: fixes for powerpc-linux-uclibc

commit1cd9c588349b987618535abcb6dd78d7c6cd14c7 authorobadz <obadz-git@obadz.com> dateThu 11 Aug 2016, 00:51 (10 years ago) parent33166b75ab8e0d
5 files changed+11−1
pkgs/build-support/gcc-cross-wrapper/builder.sh+1−1 pkgs/development/compilers/gcc/4.9/default.nix+3 pkgs/development/compilers/gcc/5/default.nix+3 pkgs/development/compilers/gcc/6/default.nix+3 pkgs/os-specific/linux/uclibc/default.nix+1
pkgs/build-support/gcc-cross-wrapper/builder.sh+1−1
@@ -7,7 +7,7 @@ mkdir $out/nix-support
77# Force gcc to use ld-wrapper.sh when calling ld.
88cflagsCompile="-B$out/bin/"
99
10−if test -z "$nativeLibc"; then
10+if test -z "$nativeLibc" -a -n "$libc"; then
1111 cflagsCompile="$cflagsCompile -B$gccLibs/lib -B$libc/lib/ -isystem $libc/include"
1212 ldflags="$ldflags -L$libc/lib"
1313 # Get the proper dynamic linker for glibc and uclibc.
pkgs/development/compilers/gcc/4.9/default.nix+3
@@ -189,6 +189,9 @@ let version = "4.9.4";
189189 # To keep ABI compatibility with upstream mingw-w64
190190 " --enable-fully-dynamic-string"
191191 else (if cross.libc == "uclibc" then
192+ # libsanitizer requires netrom/netrom.h which is not
193+ # available in uclibc.
194+ " --disable-libsanitizer" +
192195 # In uclibc cases, libgomp needs an additional '-ldl'
193196 # and as I don't know how to pass it, I disable libgomp.
194197 " --disable-libgomp" else "") +
pkgs/development/compilers/gcc/5/default.nix+3
@@ -189,6 +189,9 @@ let version = "5.4.0";
189189 # To keep ABI compatibility with upstream mingw-w64
190190 " --enable-fully-dynamic-string"
191191 else (if cross.libc == "uclibc" then
192+ # libsanitizer requires netrom/netrom.h which is not
193+ # available in uclibc.
194+ " --disable-libsanitizer" +
192195 # In uclibc cases, libgomp needs an additional '-ldl'
193196 # and as I don't know how to pass it, I disable libgomp.
194197 " --disable-libgomp" else "") +
pkgs/development/compilers/gcc/6/default.nix+3
@@ -188,6 +188,9 @@ let version = "6.1.0";
188188 # To keep ABI compatibility with upstream mingw-w64
189189 " --enable-fully-dynamic-string"
190190 else (if cross.libc == "uclibc" then
191+ # libsanitizer requires netrom/netrom.h which is not
192+ # available in uclibc.
193+ " --disable-libsanitizer" +
191194 # In uclibc cases, libgomp needs an additional '-ldl'
192195 # and as I don't know how to pass it, I disable libgomp.
193196 " --disable-libgomp" else "") +
pkgs/os-specific/linux/uclibc/default.nix+1
@@ -104,6 +104,7 @@ stdenv.mkDerivation {
104104 meta = {
105105 homepage = http://www.uclibc.org/;
106106 description = "A small implementation of the C library";
107+ maintainers = with stdenv.lib.maintainers; [ rasendubi ];
107108 license = stdenv.lib.licenses.lgpl2;
108109 platforms = stdenv.lib.platforms.linux;
109110 };