From a820a98139533c1e50d60fd489f0e969d4812d33 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 5 Dec 2019 10:02:14 +0100 Subject: [PATCH] build: Support toplevel lib and mes builds. * 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 | 3 +-- build-aux/build.sh.in | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build-aux/build-mes.sh b/build-aux/build-mes.sh index 1a8bcf36..6a6b84bd 100755 --- a/build-aux/build-mes.sh +++ b/build-aux/build-mes.sh @@ -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 diff --git a/build-aux/build.sh.in b/build-aux/build.sh.in index ff2f2f0b..a96436ed 100644 --- a/build-aux/build.sh.in +++ b/build-aux/build.sh.in @@ -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