RFR: JDK-8323008: filter out any -std* flags added by autoconf from CC/CXX

Matthias Baesken mbaesken at openjdk.org
Mon Jan 8 10:20:42 UTC 2024


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

-------------

Commit messages:
 - JDK-8323008

Changes: https://git.openjdk.org/jdk/pull/17301/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17301&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8323008
  Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/17301.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17301/head:pull/17301

PR: https://git.openjdk.org/jdk/pull/17301


More information about the build-dev mailing list