From 43cea71d5bb46a77e4ac485e4c70a24d8da5c70d Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 15 Aug 2017 13:18:27 -0500 Subject: [PATCH] jdk8: add cflags to fix build w/gcc6 --- pkgs/development/compilers/openjdk/8.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/openjdk/8.nix b/pkgs/development/compilers/openjdk/8.nix index 838c02ce7e8..3355304b3bb 100644 --- a/pkgs/development/compilers/openjdk/8.nix +++ b/pkgs/development/compilers/openjdk/8.nix @@ -98,6 +98,10 @@ let substituteInPlace configure --replace /bin/bash "$shell" substituteInPlace hotspot/make/linux/adlc_updater --replace /bin/sh "$shell" substituteInPlace hotspot/make/linux/makefiles/dtrace.make --replace /usr/include/sys/sdt.h "/no-such-path" + '' + # https://bugzilla.redhat.com/show_bug.cgi?id=1306558 + + stdenv.lib.optionalString stdenv.cc.isGNU '' + NIX_CFLAGS_COMPILE+=" -fno-lifetime-dse -fno-delete-null-pointer-checks" ''; configureFlags = [