RFR: 8323672: Suppress unwanted autoconf added flags in CC and CXX [v4]
Erik Joelsson
erikj at openjdk.org
Thu Jan 18 14:02:11 UTC 2024
On Wed, 17 Jan 2024 15:30:36 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> What fun, I just found out that omitting the call to AC_PROG_CC and AC_PROG_CXX has no effect, and they're _still_ called magically from somewhere by autoconf even if you don't call them. I'm genuinely at a loss for words :)
If I'm to guess, I think this is caused by AC_PROG_* being defined as AC_DEFUN_ONCE and every other autoconf macro that uses compilers for checks will implicitly call AC_PROG_* first if it hasn't been called yet. My understanding of these implicit calls is to make a more declarative programming style possible.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17401#issuecomment-1898532921
More information about the build-dev
mailing list