Browse Source

libhowdy.so needs to be compiled with -fPIC

David Schleef 22 years ago
parent
commit
f2ca1a04b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/ldso/Makefile

+ 1 - 1
test/ldso/Makefile

@@ -7,7 +7,7 @@ dltest.o: dltest.c
 	$(CC) $(CFLAGS) -c dltest.c -o dltest.o
 
 howdy.o: howdy.c
-	$(CC) $(CFLAGS) -c howdy.c -o howdy.o
+	$(CC) $(CFLAGS) -fPIC -c howdy.c -o howdy.o
 
 libhowdy.so: howdy.o
 	$(CC) $(CFLAGS) -shared -o libhowdy.so -Wl,-soname,libhowdy.so howdy.o