aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/glibc
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-01-11 06:32:24 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2019-06-17 07:06:01 +0200
commitb5fa934872c85cb03f7cb813989470b0d05b21bf (patch)
tree08387bc8b1818a5f46645d02cf51985c05c81a2f /pkgs/development/libraries/glibc
parentba6dff4e881c5d9817774f3a4e7bfcb35892c37f (diff)
glibc: fix withGd build with gcc8
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r--pkgs/development/libraries/glibc/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix
index 444d6c458fb6..eda71af59783 100644
--- a/pkgs/development/libraries/glibc/default.nix
+++ b/pkgs/development/libraries/glibc/default.nix
@@ -40,6 +40,8 @@ callPackage ./common.nix { inherit stdenv; } {
# limit rebuilds by only disabling pie w/musl
++ stdenv.lib.optional stdenv.hostPlatform.isMusl "pie";
+ NIX_CFLAGS_COMPILE = if withGd then "-Wno-error=stringop-truncation" else null;
+
# When building glibc from bootstrap-tools, we need libgcc_s at RPATH for
# any program we run, because the gcc will have been placed at a new
# store path than that determined when built (as a source for the