summaryrefslogtreecommitdiff
path: root/libcody
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-15 11:29:44 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-15 11:29:44 -0800
commite48456f568ac4a4dde0b17766b28eadc91daf7f2 (patch)
tree535d96e7ad662258c9567e66bbc37f5c58a40481 /libcody
parent433703843b3fa76bcbba4f1fd782c7ef319b64a8 (diff)
downloadgcc-e48456f568ac4a4dde0b17766b28eadc91daf7f2.tar.gz
libcody: Fix for dash
Apparently 'var+=...' is not a dash thing. Fixed thusly. * config.m4: Avoid non-dash idiom * configure: Rebuilt.
Diffstat (limited to 'libcody')
-rw-r--r--libcody/config.m43
-rwxr-xr-xlibcody/configure3
2 files changed, 4 insertions, 2 deletions
diff --git a/libcody/config.m4 b/libcody/config.m4
index 364195a9f0b..0ae7b2665f0 100644
--- a/libcody/config.m4
+++ b/libcody/config.m4
@@ -35,7 +35,8 @@ if test "$tools" && test -d "$tools/lib" ; then
if os=$(CXX -print-multi-os-directory 2>/dev/null) ; then
toollib+="/${os}"
fi
- LDFLAGS+=" -L $toollib"
+ ## VAR+=... is not dashing
+ LDFLAGS="$LDFLAGS -L $toollib"
unset toollib
fi])
diff --git a/libcody/configure b/libcody/configure
index 35fd4e9db7e..8f22dd78134 100755
--- a/libcody/configure
+++ b/libcody/configure
@@ -2632,7 +2632,8 @@ if test "$tools" && test -d "$tools/lib" ; then
if os=$(CXX -print-multi-os-directory 2>/dev/null) ; then
toollib+="/${os}"
fi
- LDFLAGS+=" -L $toollib"
+ ## VAR+=... is not dashing
+ LDFLAGS="$LDFLAGS -L $toollib"
unset toollib
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking adding -Wl,--no-undefined to linker" >&5