From 65a95a647b63a3cded8d862e8bbb24ac50e14f2a Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 29 Apr 2010 01:15:19 +0000 Subject: [PATCH] Tweak the lua patch to use PIC when building the shared library --- dev-lang/lua/patches/lua-5.1.4.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-lang/lua/patches/lua-5.1.4.patch b/dev-lang/lua/patches/lua-5.1.4.patch index c35b9ffba..5a6957180 100644 --- a/dev-lang/lua/patches/lua-5.1.4.patch +++ b/dev-lang/lua/patches/lua-5.1.4.patch @@ -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)