From 47fd6ba080a0e09b98f15306b244f46152ffd252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 12 Jan 2023 00:55:48 +0100 Subject: [PATCH] Prevent autotools macro from erasing CFLAGS. [CONFIGURATION] * BUG: Prevent autotools macro from erasing CFLAGS. --- acinclude.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 9c20202d5..edb5080cb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -445,10 +445,12 @@ AC_DEFUN([GB_INIT], dnl ---- Checks for programs + save_CFLAGS=$CFLAGS AC_PROG_CPP AC_PROG_CXX AC_PROG_CC AC_PROG_MAKE_SET + CFLAGS=$save_CFLAGS AC_SUBST(AM_CFLAGS) AC_SUBST(AM_CFLAGS_OPT)