RFR: JDK-8323008: filter out any -std* flags added by autoconf from CC/CXX
Matthias Baesken
mbaesken at openjdk.org
Tue Jan 9 16:20:24 UTC 2024
On Mon, 8 Jan 2024 10:16:21 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> It was observed, that autoconf 2.72 added on macOS x86_64 the flag -std=gnu++11 by default to CXX in the configure process .
> This is not really wanted so better remove / filter out any -std* flags added by autoconf from CC/CXX .
>
> Seems we have something similar for some time for CFLAGS and CXXFLAGS ( see TOOLCHAIN_POST_DETECTION in make/autoconf/toolchain.m4) that
> dates back to JDK 9.
>
> See the discussion about this issue : https://mail.openjdk.org/pipermail/build-dev/2024-January/042551.html
Strange, I noticed that for some reason the UTIL_GET_NON_MATCHING_VALUES(cxx_filtered, $CXX, -std=c++11 -std=gnu++11) seems not to remove the flags as expected, did I misinterpret how UTIL_GET_NON_MATCHING_VALUES works ? Any ideas ?
An
`CXX=`echo $CXX | cut -d ' ' -f1``
extracted what we want (not sure if we want to do it that way, in case we have blanks in the CXX value ?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17301#issuecomment-1883357259
More information about the build-dev
mailing list