RFR: JDK-8323008: filter out any -std* flags added by autoconf from CC/CXX
Matthias Baesken
mbaesken at openjdk.org
Wed Jan 10 07:47:22 UTC 2024
On Tue, 9 Jan 2024 17:03:43 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> Rather than filtering through the added flags like this, is it possible to figure out why macOS trips the C++11 heuristic and fix the problem there?
That might be a bit tricky, because on my macOS test machine, with a self compiled autoconf 2.72, I did not even get this strange behavior. But it was a different macOS version . So it seems to be a problem of very specific environment.
> Failing that, a temporary solution of setting the shell var ac_prog_cc_stdc to yes might help as a band aid solution, as autoconf does not perform the check if that is set to anything other than no
Can we set this somewhere in the OpenJDK m4 files, would be better for us than on the shell before configure.
Should we set this in general , or do we want autoconf to add sometimes flags like these to CXX (or maybe CC) ?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17301#issuecomment-1884339468
More information about the build-dev
mailing list