aboutsummaryrefslogtreecommitdiff
path: root/libcody/configure
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-16 06:03:38 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-16 06:03:38 -0800
commit6d972f5183d8d476cfb008b85e224aa9b90e628d (patch)
treec191d93d7bd19ec0e0c0178a5fdb6dbbbaea6346 /libcody/configure
parentc1ea7c68ef35d24c6264c203e04f9eb9c47a0cf6 (diff)
downloadgcc-6d972f5183d8d476cfb008b85e224aa9b90e628d.zip
gcc-6d972f5183d8d476cfb008b85e224aa9b90e628d.tar.gz
gcc-6d972f5183d8d476cfb008b85e224aa9b90e628d.tar.bz2
libcody: More dashism
There were still some dash-killing uses of +=. Fixed thusly. * config.m4: Replace V+="..." with V="$V..." * configure: Rebuilt.
Diffstat (limited to 'libcody/configure')
-rwxr-xr-xlibcody/configure13
1 files changed, 7 insertions, 6 deletions
diff --git a/libcody/configure b/libcody/configure
index 1a119c5..4cc03dc 100755
--- a/libcody/configure
+++ b/libcody/configure
@@ -1824,6 +1824,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Copyright (C) 2020 Nathan Sidwell, nathan@acm.org
# License: Apache v2.0
+# Note: VAR+=... is not dashing, despite its looks
+
# thanks to Zack Weinberg for fixing this!
@@ -2574,7 +2576,7 @@ if ac_fn_cxx_try_compile "$LINENO"; then :
$as_echo "yes" >&6; }
else
CXX_ORIG="$CXX"
-CXX+=" -std=c++11"
+CXX="$CXX -std=c++11"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -2625,14 +2627,13 @@ unset CXX_ORIG
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$tools" && test -d "$tools/include" ; then
- CXX+=" -I$tools/include"
+ CXX="$CXX -I$tools/include"
fi
if test "$tools" && test -d "$tools/lib" ; then
toollib="$tools/lib"
if os=$(CXX -print-multi-os-directory 2>/dev/null) ; then
- toollib+="/${os}"
+ toollib="$toollib/${os}"
fi
- ## VAR+=... is not dashing
LDFLAGS="$LDFLAGS -L $toollib"
unset toollib
fi
@@ -2671,8 +2672,8 @@ for generated in config.h.in configure ; do
done
for dir in . $SUBDIRS
do
- CONFIG_FILES+=" $dir/Makesub"
- test -f ${srcdir}/$dir/tests/Makesub.in && CONFIG_FILES+=" $dir/tests/Makesub"
+ CONFIG_FILES="$CONFIG_FILES $dir/Makesub"
+ test -f ${srcdir}/$dir/tests/Makesub.in && CONFIG_FILES="$CONFIG_FILES $dir/tests/Makesub"
done
ac_config_files="$ac_config_files $CONFIG_FILES"