glibc: fix withGd build with gcc8

This commit is contained in:
Robin Gloster 2019-01-11 06:32:24 +01:00 committed by Franz Pletz
parent ba6dff4e88
commit b5fa934872
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

@ -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