summaryrefslogtreecommitdiff
path: root/test/Makefile.in
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-11-17 12:58:24 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-11-17 12:58:24 +0000
commita19843f76c043ce93f9db72155ade7faddbe546b (patch)
tree7b616f4be08160a8ac4c9aa66bd086b2a0bc28f5 /test/Makefile.in
parentb920a585611d6544f54ba1ee53477d067e6524bd (diff)
downloadlibapr-a19843f76c043ce93f9db72155ade7faddbe546b.tar.gz
* Makefile.in: Link programs using -no-install flag so that they
really are binary executables, not libtool wrapper scripts, and without the -avoid-version flag which produces a warning for programs. (reinforced dependency on libtool >=1.4 for this Makefile) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64765 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/Makefile.in')
-rw-r--r--test/Makefile.in38
1 files changed, 21 insertions, 17 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 086917ab5..5c5c21175 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -42,6 +42,10 @@ readchild@EXEEXT@
INCDIR=../include
INCLUDES=-I$(INCDIR)
+# link programs using -no-install to get real executables not
+# libtool wrapper scripts which link an executable when first run.
+LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) -no-install $(ALL_LDFLAGS) -o $@
+
check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
./$$prog; \
@@ -52,16 +56,16 @@ check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
done
testflock@EXEEXT@: testflock.lo $(LOCAL_LIBS)
- $(LINK) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testflock.lo $(LOCAL_LIBS) $(ALL_LIBS)
occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
- $(LINK) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)
readchild@EXEEXT@: readchild.lo $(LOCAL_LIBS)
- $(LINK) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) readchild.lo $(LOCAL_LIBS) $(ALL_LIBS)
proc_child@EXEEXT@: proc_child.lo $(LOCAL_LIBS)
- $(LINK) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) proc_child.lo $(LOCAL_LIBS) $(ALL_LIBS)
# FIXME: -prefer-pic is only supported with libtool-1.4+
mod_test.slo: $(srcdir)/mod_test.c
@@ -74,40 +78,40 @@ libmod_test.la: mod_test.slo $(LOCAL_LIBS)
$(LIBTOOL) --mode=link $(COMPILE) -rpath `pwd` -avoid-version mod_test.lo $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@
testlockperf@EXEEXT@: testlockperf.lo $(LOCAL_LIBS)
- $(LINK) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testlockperf.lo $(LOCAL_LIBS) $(ALL_LIBS)
testsock@EXEEXT@: testsock.lo client@EXEEXT@ server@EXEEXT@ sendfile@EXEEXT@ $(LOCAL_LIBS)
- $(LINK) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testsock.lo $(LOCAL_LIBS) $(ALL_LIBS)
client@EXEEXT@: client.lo $(LOCAL_LIBS)
- $(LINK) client.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) client.lo $(LOCAL_LIBS) $(ALL_LIBS)
server@EXEEXT@: server.lo $(LOCAL_LIBS)
- $(LINK) server.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) server.lo $(LOCAL_LIBS) $(ALL_LIBS)
sendfile@EXEEXT@: sendfile.lo $(LOCAL_LIBS)
- $(LINK) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) sendfile.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshm@EXEEXT@: testshm.lo $(LOCAL_LIBS) testshmproducer@EXEEXT@ testshmconsumer@EXEEXT@
- $(LINK) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testshm.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshmproducer@EXEEXT@: testshmproducer.lo $(LOCAL_LIBS)
- $(LINK) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testshmproducer.lo $(LOCAL_LIBS) $(ALL_LIBS)
testshmconsumer@EXEEXT@: testshmconsumer.lo $(LOCAL_LIBS)
- $(LINK) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testshmconsumer.lo $(LOCAL_LIBS) $(ALL_LIBS)
testprocmutex@EXEEXT@: testprocmutex.lo $(LOCAL_LIBS)
- $(LINK) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testprocmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
testglobalmutex@EXEEXT@: testglobalmutex.lo $(LOCAL_LIBS)
- $(LINK) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testglobalmutex.lo $(LOCAL_LIBS) $(ALL_LIBS)
testatomic@EXEEXT@: testatomic.lo $(LOCAL_LIBS)
- $(LINK) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testatomic.lo $(LOCAL_LIBS) $(ALL_LIBS)
testmutexscope@EXEEXT@: testmutexscope.lo $(LOCAL_LIBS)
- $(LINK) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) testmutexscope.lo $(LOCAL_LIBS) $(ALL_LIBS)
TESTS = testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo \
@@ -119,7 +123,7 @@ TESTS = testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo \
testall: $(TESTS) mod_test.la libmod_test.la occhild@EXEEXT@ \
readchild@EXEEXT@ CuTest.lo proc_child@EXEEXT@ $(LOCAL_LIBS)
- $(LINK) $(TESTS) CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS)
+ $(LINK_PROG) $(TESTS) CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS)
# DO NOT REMOVE