openjdk: fixup build after #44767

This commit is contained in:
Vladimír Čunát 2018-08-19 20:10:07 +02:00
parent 01fc00cc81
commit 38eea804e6
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -106,6 +106,12 @@ let
# https://github.com/JetBrains/jdk8u/commit/eaa5e0711a43d64874111254d74893fa299d5716
+ stdenv.lib.optionalString stdenv.cc.isGNU ''
NIX_CFLAGS_COMPILE+=" -fno-lifetime-dse -fno-delete-null-pointer-checks -std=gnu++98 -Wno-error"
''
# The configure script was confused by our passing these with full paths,
# so we explicitly override them to short variants.
+ ''
CC=cc
CXX=c++
'';
configureFlags = [