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)