>>
>> It looks like there is code to attempt to deal with that sort of thing in our
>> build system. See TOOLCHAIN_POST_DETECTION in make/autoconf/toolchain.m4. 
>> That
>> dates back to JDK 9. However, that only deals with CFLAGS and CXXFLAGS. The
>> AC_PROG_CC/CXX feature affects the CC/CXX variables. Bleh!
>
> Looks like we need to extend this functionality and filter out any 
> "-std*" flags added by autoconf from CC/CXX. Even if later "-std=c++14" 
> on the command line overrides correctly, it would be good for 
> sanitation. I think such a fix should be done in mainline to avoid 
> different behavior with different versions of autoconf. It can then be 
> backported to openjdk 11 to fix the more severe issue described here.

Hi Erik, I created  :

https://bugs.openjdk.org/browse/JDK-8323008
8323008: filter out any -std* flags added by autoconf from CC/CXX

Feel free to add  additional info  to this JBS issue  .


Best regards, Matthias

Reply via email to