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
commit0df48880b671c666cb3779ea51e8d055e3ea0bb0 (patch)
tree9b35d9bcb21f2bd765743bc7abe67a97c34a52cc /build.template
parente5205e273c4f146eb3151648fb1472f82cd5a1d0 (diff)
downloadmake-0df48880b671c666cb3779ea51e8d055e3ea0bb0.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 aee512f7..a91a3c1e 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}...