build: Support toplevel lib and mes builds.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 5 Dec 2019 09:02:14 +0000 (10:02 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 5 Dec 2019 09:02:14 +0000 (10:02 +0100)
* build-aux/build.sh.in: Add missing libdir for gcc build.
* build-aux/config.sh.in: ...here.
* build-aux/build-mes.sh: Do not overwrite srcdest, V.

build-aux/build-mes.sh
build-aux/build.sh.in

index 1a8bcf3600db35e34f11728d8211f382e2ff8eb6..6a6b84bd84e61b2601e5d2ec5c3b374cef4fec91 100755 (executable)
@@ -21,7 +21,7 @@
 set -e
 set -u
 
-V=${V-1}
+V=${V-}
 
 if [ "$V" = 2 ]; then
     set -x
@@ -33,7 +33,6 @@ fi
 
 trap 'test -f .log && cat .log' EXIT
 
-srcdest=${srcdest-}
 mes_sources="
 src/gc.c
 src/hash.c
index ff2f2f0b1bac0a3326b4609a25d0901b8bce9b2c..a96436edb50d6fde5074d8f00fc3df2286926b83 100644 (file)
@@ -58,6 +58,9 @@ fi
         srcdir=../
     fi
     if test $compiler = gcc; then
+        AM_LDFLAGS="$AM_LDFLAGS
+-L gcc-lib
+"
         AM_CPPFLAGS="
 -D HAVE_CONFIG_H=1
 -I include