summaryrefslogtreecommitdiff
path: root/build.template
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-03-26 07:08:57 +0000
committerPaul Smith <psmith@gnu.org>1999-03-26 07:08:57 +0000
commitecb3bca9f5cbd4ab67acf5da69f379ddadeaeb28 (patch)
tree9b35d9bcb21f2bd765743bc7abe67a97c34a52cc /build.template
parentc4353af3f9b143b213644c09da5cf46ef611b250 (diff)
downloadgunmake-ecb3bca9f5cbd4ab67acf5da69f379ddadeaeb28.tar.gz
* Manual updates: added xrefs, some typos sent by users.
* Change the build env. to not link libglob.a unless we need it.
Diffstat (limited to 'build.template')
-rw-r--r--build.template5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.template b/build.template
index aee512f..a91a3c1 100644
--- a/build.template
+++ b/build.template
@@ -32,6 +32,7 @@ ALLOCA='@ALLOCA@'
LOADLIBES='@LIBS@'
extras='@LIBOBJS@'
REMOTE='@REMOTE@'
+GLOBLIB='@GLOBLIB@'
# Common prefix for machine-independent installed files.
prefix='@prefix@'
@@ -48,6 +49,10 @@ set -e
# These are all the objects we need to link together.
objs="%objs% remote-${REMOTE}.o ${extras} ${ALLOCA}"
+if [ x"$GLOBLIB" != x ]; then
+ objs="$objs %globobjs%"
+fi
+
# Compile the source files into those objects.
for file in `echo ${objs} | sed 's/\.o/.c/g'`; do
echo compiling ${file}...