summaryrefslogtreecommitdiff
path: root/test/dlopen/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-03 10:10:37 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-03 10:10:37 +0000
commit119b5a98ec0af8518373c1c9b9c8db8810dc5531 (patch)
tree3ffcd82abe78bc3ba16fdd9b8bfa4fd6fc807299 /test/dlopen/Makefile
parentf680861de57542f1ca81de1d7aa8ebb89da1cc2c (diff)
Add ldflags where needed
Diffstat (limited to 'test/dlopen/Makefile')
-rw-r--r--test/dlopen/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/dlopen/Makefile b/test/dlopen/Makefile
index 286165361..98a48d4f0 100644
--- a/test/dlopen/Makefile
+++ b/test/dlopen/Makefile
@@ -25,19 +25,19 @@ DEBUG_LIBS=X
all: run
test1: test1.c
- $(CC) $(CFLAGS) -o test1 test1.c -ldl
+ $(CC) $(CFLAGS) $(LDFLAGS) -o test1 test1.c -ldl
test2: test2.c
- $(CC) $(CFLAGS) -o test2 test2.c -ldl
+ $(CC) $(CFLAGS) $(LDFLAGS) -o test2 test2.c -ldl
test3: test3.c
- $(CC) $(CFLAGS) -o test3 test3.c -ldl ./libtest1.so ./libtest2.so
+ $(CC) $(CFLAGS) $(LDFLAGS) -o test3 test3.c -ldl ./libtest1.so ./libtest2.so
libtest1.o: libtest1.c
- $(CC) $(CFLAGS) -fPIC -c libtest1.c -o libtest1.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -c libtest1.c -o libtest1.o
libtest2.o: libtest2.c
- $(CC) $(CFLAGS) -fPIC -c libtest2.c -o libtest2.o
+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -c libtest2.c -o libtest2.o
libtest1.so: libtest1.o
$(CC) $(CFLAGS) -fPIC -shared -o libtest1.so -Wl,-soname,libtest1.so libtest1.o ./libtest2.so
@@ -46,14 +46,14 @@ libtest2.so: libtest2.o
$(CC) $(CFLAGS) -fPIC -shared -o libtest2.so -Wl,-soname,libtest2.so libtest2.o
dltest: dltest.c
- $(CC) $(CFLAGS) -DLIBNAME="\"./libtest.so\"" dltest.c -ldl -lpthread -o dltest
+ $(CC) $(CFLAGS) $(LDFLAGS) -DLIBNAME="\"./libtest.so\"" dltest.c -ldl -lpthread -o dltest
libtest.so: libtest.c
$(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,libtest.so libtest.c -o libtest.so
# Second time, directly link libtest3.so with libpthread
dltest2: dltest.c
- $(CC) $(CFLAGS) -DLIBNAME="\"./libtest3.so\"" dltest.c -ldl -lpthread -o dltest2
+ $(CC) $(CFLAGS) $(LDFLAGS) -DLIBNAME="\"./libtest3.so\"" dltest.c -ldl -lpthread -o dltest2
libtest3.so: libtest.c
$(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,libtest3.so libtest.c -o libtest3.so -lpthread