Add -fPIC to util-src/Makefile
authorMatthew Wild <mwild1@gmail.com>
Sat, 29 Nov 2008 22:20:59 +0000
changeset 491 25042b0d2626
parent 490 9087f39b4222
child 492 279f64370885
Add -fPIC to util-src/Makefile
util-src/Makefile
--- a/util-src/Makefile	Sat Nov 29 22:11:21 2008 +0100
+++ b/util-src/Makefile	Sat Nov 29 22:20:59 2008 +0000
@@ -21,8 +21,8 @@
 	rm -f ../util/*.so
 
 encodings.so: encodings.c
-	gcc -shared encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so
+	gcc -shared -fPIC encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so
 
 hashes.so: hashes.c
-	gcc -shared hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so
+	gcc -shared -fPIC hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so