aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2023-08-07 13:07:47 +0200
committerAlan Modra <amodra@gmail.com>2023-08-12 10:25:06 +0930
commit19824f6fab29fddebc4e7674a730d65bd3efd7ea (patch)
treec380f30c3208b56ef7d5a2d18e9a279d4d971b62 /configure.ac
parentdbd77e21946f3d952f0c955c83a4fbe6fa630ef1 (diff)
downloadgdb-19824f6fab29fddebc4e7674a730d65bd3efd7ea.zip
gdb-19824f6fab29fddebc4e7674a730d65bd3efd7ea.tar.gz
gdb-19824f6fab29fddebc4e7674a730d65bd3efd7ea.tar.bz2
Use substituted GDCFLAGS
Use the substituted value for GCDFLAGS instead of hardcoding $(CFLAGS) so that the subdir configure scripts use the configured value. * configure.ac (GDCFLAGS): Set default from ${CFLAGS}.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 861432a..5d25dc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3717,6 +3717,7 @@ AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(GDC)
AC_SUBST(GDCFLAGS)
+GDCFLAGS=${GDCFLAGS-${CFLAGS}}
AC_SUBST(PKG_CONFIG_PATH)
GCC_PLUGIN_OPTION(PLUGIN_OPTION)