summaryrefslogtreecommitdiff
path: root/test/ldso/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-27 19:38:14 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-27 19:38:14 +0000
commita74fc341b922f38161d10a9470b63ad537e13f07 (patch)
tree38fd28fd134269bc9266be0ae25a1a006515ccd3 /test/ldso/Makefile
parent345b9927e608fd92e6231ef803b940afd6e6558c (diff)
Semonstrate a problem where weak symbols referenced in shared libs are not
being overridden when those same symbols _are_ overridden by other shared libs in the main app. Ick. -Erik
Diffstat (limited to 'test/ldso/Makefile')
-rw-r--r--test/ldso/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/ldso/Makefile b/test/ldso/Makefile
index 2d3611222..9a750e8a3 100644
--- a/test/ldso/Makefile
+++ b/test/ldso/Makefile
@@ -21,6 +21,13 @@ include $(TESTDIR)/Rules.mak
CFLAGS+=--uclibc-ctors
all: dltest2 dltest libhowdy.so run
+all: dlttest dlttest2 dltest2 dltest libhowdy.so run
+
+dlttest.o: dlttest.c
+ $(CC) $(CFLAGS) -c dlttest.c -o dlttest.o
+
+dlttest2.o: dlttest.c
+ $(CC) $(CFLAGS) -DFORCE -c dlttest.c -o dlttest2.o
dltest2: dltest2.c
$(CC) $(CFLAGS) dltest2.c -o dltest2 -ldl
@@ -37,10 +44,20 @@ libhowdy.so: howdy.o
dltest: dltest.o
$(CC) $(CFLAGS) -o dltest dltest.o -ldl
-
-run: dltest libhowdy.so
+
+dlttest: dlttest.o
+ $(CC) $(CFLAGS) -o dlttest dlttest.o -ldl -lpthread
+
+dlttest2: dlttest2.o
+ $(CC) $(CFLAGS) -o dlttest2 dlttest2.o -ldl -lpthread
+
+run: dltest dlttest dlttest2 libhowdy.so
@echo Running dltest
./dltest
+ @echo Running dlttest
+ ./dlttest
+ @echo Running dlttest2
+ ./dlttest2
clean:
rm -f *.o *.so dltest2 dltest core libhowdy.so