It appears that the Makefile targets for test_* in Exim v2.02 do not
reference $(LFLAGS), making these targets fail if one puts required flags
in LFLAGS.
This might be my mistake; I'm currently putting the '-L' switches for my
extralibs in LFLAGS rather than combined with '-l' in EXTRALIBS and
DBMLIB.
A patch against OS/Makefile-Base is below.
--- Makefile-Base.orig Mon Aug 3 06:27:31 1998
+++ Makefile-Base Fri Aug 14 16:49:03 1998
@@ -483,7 +483,7 @@
test_dbfn: config.h dbfn.c dummies.o globals.o os.o store.o \
string.o tod.o version.o
- $(CC) $(CFLAGS) $(INCLUDE) -o test_dbfn -DSTAND_ALONE dbfn.c \
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_dbfn $(LFLAGS) -DSTAND_ALONE dbfn.c \
dummies.o globals.o os.o store.o string.o \
tod.o version.o $(LIBS) $(DBMLIB)
/bin/rm -f dbfn.o
@@ -491,7 +491,7 @@
test_expand: config.h expand.c dns.c parse.c drtables.o string.o dummies.o \
globals.o search.o store.o tod.o tree.o pcre/libpcre.a \
lookups/lookups.a
- $(CC) $(CFLAGS) $(INCLUDE) -o test_expand -DSTAND_ALONE -DTEST_EXPAND \
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_expand $(LFLAGS) -DSTAND_ALONE -DTEST_EXPAND \
expand.c dns.c drtables.c parse.c dummies.o globals.o search.o \
store.o string.o tree.o tod.o pcre/libpcre.a lookups/lookups.a \
$(DBMLIB) $(LIBS) $(LIBRESOLV) $(LOOKUP_LIBS)
@@ -499,7 +499,7 @@
test_host: config.h host.c dns.c dummies.o globals.o store.o \
string.o tod.o
- $(CC) $(CFLAGS) $(INCLUDE) -o test_host -DSTAND_ALONE host.c \
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_host $(LFLAGS) -DSTAND_ALONE host.c \
dns.c dummies.o globals.o store.o string.o tod.o \
$(LIBS) $(LIBRESOLV)
/bin/rm -f host.o
@@ -507,7 +507,7 @@
test_match: config.h expand.o dns.o drtables.o string.o dummies.o \
match.c \
globals.o search.o store.o tod.o tree.o pcre/libpcre.a lookups/lookups.a
- $(CC) $(CFLAGS) $(INCLUDE) -o test_match -DSTAND_ALONE -DTEST_EXPAND \
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_match $(LFLAGS) -DSTAND_ALONE -DTEST_EXPAND \
match.c \
expand.o dns.o drtables.c dummies.o globals.o search.o \
store.o string.o tree.o tod.o pcre/libpcre.a lookups/lookups.a \
@@ -515,18 +515,18 @@
/bin/rm -f match.o
test_os: os.h os.c
- $(CC) $(CFLAGS) $(INCLUDE) -o test_os -DSTAND_ALONE os.c $(LIBS)
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_os $(LFLAGS) -DSTAND_ALONE os.c $(LIBS)
/bin/rm -f os.o
test_parse: config.h parse.c dummies.o globals.o \
store.o string.o tod.o version.o
- $(CC) $(CFLAGS) $(INCLUDE) -o test_parse -DSTAND_ALONE parse.c \
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_parse $(LFLAGS) -DSTAND_ALONE parse.c \
dummies.o globals.o store.o string.o tod.o version.o
/bin/rm -f parse.o
test_string: config.h string.c dummies.o globals.o \
store.o tod.o
- $(CC) $(CFLAGS) $(INCLUDE) -o test_string -DSTAND_ALONE string.c \
+ $(CC) $(CFLAGS) $(INCLUDE) -o test_string $(LFLAGS) -DSTAND_ALONE string.c \
dummies.o globals.o store.o tod.o $(LIBS)
/bin/rm -f string.o
--
j.
James FitzGibbon james@???
System Engineer, ACC Global Net Voice/Fax (416)207-7171/7610
--
*** Exim information can be found at
http://www.exim.org/ ***