URL: <https://savannah.gnu.org/support/?111383>
Summary: AC_PROG_GO clobbers GOFLAGS
Group: Autoconf
Submitter: thesamesam
Submitted: Wed 04 Feb 2026 10:42:28 PM UTC
Priority: 5 - Unprioritized
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Unlocked
Operating System: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 04 Feb 2026 10:42:28 PM UTC By: Sam James <thesamesam>
[See also sr #111382 for Algol 68].
AC_PROG_GO seems to unconditionally clobber GOFLAGS, ignoring any value set as
an environment variable or argument to configure.
configure.ac:
AC_INIT([foo],[1.0], [[email protected]], [foo], [])
AC_PROG_GO
AC_OUTPUT
$ autoreconf # from master autoconf.git at
31eb3a33b09099298940c9cb192dc0790eab113c
$ export GOFLAGS="-ggdb3 -O2"
$ ./configure
$ grep GOFLAGS config.log
ac_cv_env_GOFLAGS_set=set
ac_cv_env_GOFLAGS_value=-ggdb3
GOFLAGS='-g -O2'
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/support/?111383>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
