svn commit: trunk/uClibc/test/dlopen

vapier at uclibc.org vapier at uclibc.org
Thu Jan 12 11:23:56 UTC 2006


Author: vapier
Date: 2006-01-12 03:23:54 -0800 (Thu, 12 Jan 2006)
New Revision: 13256

Log:
use LDFLAGS when linking .so files as pointed out by Peter S. Mazinger

Modified:
   trunk/uClibc/test/dlopen/Makefile


Changeset:
Modified: trunk/uClibc/test/dlopen/Makefile
===================================================================
--- trunk/uClibc/test/dlopen/Makefile	2006-01-12 10:42:12 UTC (rev 13255)
+++ trunk/uClibc/test/dlopen/Makefile	2006-01-12 11:23:54 UTC (rev 13256)
@@ -39,7 +39,7 @@
 	$(CC) $(CFLAGS) -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
+	$(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o libtest1.so -Wl,-soname,libtest1.so libtest1.o ./libtest2.so
 
 libtest2.so: libtest2.o
 	$(CC) $(CFLAGS) -fPIC -shared -o libtest2.so -Wl,-soname,libtest2.so libtest2.o
@@ -48,14 +48,14 @@
 	$(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
+	$(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,libtest.so libtest.c -o libtest.so
 
 # Second time, directly link libtest3.so with libpthread
 dltest2: dltest.c
 	$(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
+	$(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,libtest3.so libtest.c -o libtest3.so -lpthread
 
 run: libtest2.so libtest1.so test1 test2 test3 dltest libtest.so dltest2 libtest3.so
 	@echo "----------running test 1--------------"




More information about the uClibc-cvs mailing list