Re: [PATCH v2] configure: Fix default -O2 being added when CFLAGS not set

2022-04-06 Thread Daniel Kiper
On Mon, Mar 28, 2022 at 12:56:22PM -0500, Glenn Washburn wrote: > Autoconf will set a default CFLAGS of "-g -O2" if CFLAGS is not set. CFLAGS > was defaulted to "" early in configure to prevent this. A recent commit > ad9ccf660013c208077b1e983d6c824df25ed1cf ("configure: Fix various new > autotools

[PATCH v2] configure: Fix default -O2 being added when CFLAGS not set

2022-03-28 Thread Glenn Washburn
Autoconf will set a default CFLAGS of "-g -O2" if CFLAGS is not set. CFLAGS was defaulted to "" early in configure to prevent this. A recent commit ad9ccf660013c208077b1e983d6c824df25ed1cf ("configure: Fix various new autotools warnings") added AC_USE_SYSTEM_EXTENSIONS, which pulls in the autoconf