aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-11-27 14:31:31 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-11-27 14:33:32 -0500
commit87bf14457eac23c546efc0778711356ea5a5601d (patch)
tree9c2bf1ca32151a78e68fb3bacc9bb478ba3a40e7 /gdb/configure.ac
parentd9a84d15f23a38cce755c558c5b6227eb0ec8d02 (diff)
downloadfsf-binutils-gdb-87bf14457eac23c546efc0778711356ea5a5601d.zip
fsf-binutils-gdb-87bf14457eac23c546efc0778711356ea5a5601d.tar.gz
fsf-binutils-gdb-87bf14457eac23c546efc0778711356ea5a5601d.tar.bz2
gdb: fix typos in configure
The variable names used to restore CFLAGS and LDFLAGS here don't quite match the names used above, resulting in losing the original CFLAGS and LDFLAGS. Fix that. Change-Id: I9cc2c3b48b1dc30c31a7143563c893fd6f426a0a
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 29c1c45..ada9373 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1265,8 +1265,8 @@ either use --disable-source-highlight or dnl
# This situation can occur for instance when using a source highlight
# library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
AC_LANG_PUSH(C++)
- save_CFLAGS=$CFLAGS
- save_LDFLAGS=$LDFLAGS
+ save_CFLAGS="$CFLAGS"
+ save_LDFLAGS="$LDFLAGS"
CFLAGS="$CFLAGS $srchigh_pkg_cflags"
LDFLAGS="$LDFLAGS $srchigh_pkg_libs"
AC_LINK_IFELSE(
@@ -1278,8 +1278,8 @@ either use --disable-source-highlight or dnl
[have_usable_source_highlight=yes],
[have_usable_source_highlight=no]
)
- CFLAGS="$SAVE_CFLAGS"
- LDFLAGS="$SAVE_LDFLAGS"
+ CFLAGS="$save_CFLAGS"
+ LDFLAGS="$save_LDFLAGS"
AC_LANG_POP(C++)
if test "${have_usable_source_highlight}" = "yes"; then