summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorAlexey Shmalko <rasen.dubi@gmail.com>2016-08-03 03:32:30 +0300
committerAlexey Shmalko <rasen.dubi@gmail.com>2016-08-03 03:32:30 +0300
commita9bc2d530b45ad0356e253c6bb437e2edc631a2b (patch)
tree4b255a94c6c31f033ca435fa84ab7edc5a1c1aa1 /pkgs/development
parent662721a4616e7e0a854897845aebf8d8198cb1d2 (diff)
downloadnixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.tar
nixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.tar.gz
nixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.tar.bz2
nixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.tar.lz
nixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.tar.xz
nixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.tar.zst
nixlib-a9bc2d530b45ad0356e253c6bb437e2edc631a2b.zip
gcc: disable libsanitizer for uclibc
libsanitizer requires header files which are not present in uclibc.

Also, libsanitizer is disabled with uclibc for buildroot[1] and
openwrt[2].

[1]: https://git.busybox.net/buildroot/commit/?id=554e29e267e6b36a0fd78c82cbad2c82d939eb7f
[2]: https://gitlab.labs.nic.cz/turris/openwrt/commit/5f372a8ca08de4b2253b87253ca7762450e5641f
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/compilers/gcc/4.9/default.nix3
-rw-r--r--pkgs/development/compilers/gcc/5/default.nix3
-rw-r--r--pkgs/development/compilers/gcc/6/default.nix3
3 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc/4.9/default.nix b/pkgs/development/compilers/gcc/4.9/default.nix
index 475349ed4ba9..f955c6ace0d8 100644
--- a/pkgs/development/compilers/gcc/4.9/default.nix
+++ b/pkgs/development/compilers/gcc/4.9/default.nix
@@ -189,6 +189,9 @@ let version = "4.9.3";
             # To keep ABI compatibility with upstream mingw-w64
             " --enable-fully-dynamic-string"
             else (if cross.libc == "uclibc" then
+              # libsanitizer requires netrom/netrom.h which is not
+              # available in uclibc.
+              " --disable-libsanitizer" +
               # In uclibc cases, libgomp needs an additional '-ldl'
               # and as I don't know how to pass it, I disable libgomp.
               " --disable-libgomp" else "") +
diff --git a/pkgs/development/compilers/gcc/5/default.nix b/pkgs/development/compilers/gcc/5/default.nix
index 4802c3fe2782..2ac4f553f850 100644
--- a/pkgs/development/compilers/gcc/5/default.nix
+++ b/pkgs/development/compilers/gcc/5/default.nix
@@ -189,6 +189,9 @@ let version = "5.4.0";
             # To keep ABI compatibility with upstream mingw-w64
             " --enable-fully-dynamic-string"
             else (if cross.libc == "uclibc" then
+              # libsanitizer requires netrom/netrom.h which is not
+              # available in uclibc.
+              " --disable-libsanitizer" +
               # In uclibc cases, libgomp needs an additional '-ldl'
               # and as I don't know how to pass it, I disable libgomp.
               " --disable-libgomp" else "") +
diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix
index e87554c25ab8..ec6f0ca8d14c 100644
--- a/pkgs/development/compilers/gcc/6/default.nix
+++ b/pkgs/development/compilers/gcc/6/default.nix
@@ -188,6 +188,9 @@ let version = "6.1.0";
             # To keep ABI compatibility with upstream mingw-w64
             " --enable-fully-dynamic-string"
             else (if cross.libc == "uclibc" then
+              # libsanitizer requires netrom/netrom.h which is not
+              # available in uclibc.
+              " --disable-libsanitizer" +
               # In uclibc cases, libgomp needs an additional '-ldl'
               # and as I don't know how to pass it, I disable libgomp.
               " --disable-libgomp" else "") +