Fix dashism
authorNathan Sidwell <nathan@acm.org>
Tue, 15 Dec 2020 19:37:52 +0000 (11:37 -0800)
committerNathan Sidwell <nathan@acm.org>
Tue, 15 Dec 2020 19:37:52 +0000 (11:37 -0800)
I missed some other places that used +=

* config.m4: Avoid var+=...
* configure: Rebuilt

libcody/config.m4
libcody/configure

index 0ae7b2665f0c787e8aeb0150c485428d6242c68f..801cfbdb5937d657775f4979a71b3a81be75aeb2 100644 (file)
@@ -173,7 +173,7 @@ AC_SUBST(EXCEPTIONS)])
 AC_DEFUN([NMS_LINK_OPT],
 [AC_MSG_CHECKING([adding $1 to linker])
 ORIG_LDFLAGS="$LDFLAGS"
-LDFLAGS+=" $1"
+LDFLAGS="$LDFLAGS $1"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([])],
 [AC_MSG_RESULT([ok])],
 [LDFLAGS="$ORIG_LDFLAGS"
@@ -229,8 +229,8 @@ elif test "$withval" = "no" ; then
   AC_MSG_RESULT(installed)
 else
   AC_MSG_RESULT(${withval})
-  CPPFLAGS+=" -I${withval}/include"
-  LDFLAGS+=" -L${withval}/lib"
+  CPPFLAGS="$CPPFLAGS -I${withval}/include"
+  LDFLAGS="$LDFLAGS -L${withval}/lib"
 fi,
 AC_MSG_RESULT(installed))])
 
index 8f22dd781348a7fadba7e2a95d04822fc11b83e0..1a119c59b9fd5cdb53d9998f2644a1766cfa828d 100755 (executable)
@@ -2639,7 +2639,7 @@ fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking adding -Wl,--no-undefined to linker" >&5
 $as_echo_n "checking adding -Wl,--no-undefined to linker... " >&6; }
 ORIG_LDFLAGS="$LDFLAGS"
-LDFLAGS+=" -Wl,--no-undefined"
+LDFLAGS="$LDFLAGS -Wl,--no-undefined"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */