Tweak the lua patch to use PIC when building the shared library

This commit is contained in:
Chris Roberts
2010-04-29 01:15:19 +00:00
parent e8262abd15
commit 65a95a647b

View File

@@ -45,7 +45,7 @@ diff -up lua-5.1.4/src/Makefile.orig lua-5.1.4/src/Makefile
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
+$(LUA_SO): $(CORE_O) $(LIB_O)
+ $(CC) -o $@ -shared $(MYLDFLAGS) $? $(LIBS)
+ $(CC) -o $@ -shared -fPIC $(MYLDFLAGS) $? $(LIBS)
+
clean:
$(RM) $(ALL_T) $(ALL_O)