summaryrefslogtreecommitdiffstats
path: root/lua-forge
diff options
context:
space:
mode:
authorRemko van der Vossen2014-07-07 03:45:52 +0900
committerRemko van der Vossen2014-07-07 03:45:52 +0900
commit38533de76a83c8ee42a13e3ac78f7695bf4445db (patch)
treec684fc9e297e9b2b9efcbc1fe95d844413045e50 /lua-forge
parent0dc97db9aa657680046d67b9a859aded37b61625 (diff)
lua51: shared object not properly linked to dependencies
Diffstat (limited to 'lua-forge')
-rw-r--r--lua-forge/lua51/HISTORY4
-rw-r--r--lua-forge/lua51/patch-src_Makefile4
2 files changed, 6 insertions, 2 deletions
diff --git a/lua-forge/lua51/HISTORY b/lua-forge/lua51/HISTORY
index a15ba614cc..218a311d2c 100644
--- a/lua-forge/lua51/HISTORY
+++ b/lua-forge/lua51/HISTORY
@@ -1,3 +1,7 @@
+2014-07-06 Remko van der Vossen <wich@sourcemage.org>
+ * patch-src_Makefile: shared object was not linked
+ to libraries properly
+
2013-02-17 Robin Cook <rcook@wyrms.net>
* DETAILS: updated VERSION to 5.1.5
* PRE_BUILD: changed to add the -lm -ldl to LDFLAGS
diff --git a/lua-forge/lua51/patch-src_Makefile b/lua-forge/lua51/patch-src_Makefile
index 7ecea06a06..5de88ce46a 100644
--- a/lua-forge/lua51/patch-src_Makefile
+++ b/lua-forge/lua51/patch-src_Makefile
@@ -7,7 +7,7 @@ diff -ur lua-5.1.5/src/Makefile lua-mod/src/Makefile
MYCFLAGS=
-MYLDFLAGS=
-MYLIBS=
-+MYLDFLAGS= -lm -ldl
++MYLDFLAGS=
+MYLIBS= -ldl
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
@@ -29,7 +29,7 @@ diff -ur lua-5.1.5/src/Makefile lua-mod/src/Makefile
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
+$(LUA_SO): $(CORE_O) $(LIB_O)
-+ $(CC) -o $@ -shared $(MYLDFLAGS) $(CORE_O) $(LIB_O)
++ $(CC) -o $@ -shared $(MYLDFLAGS) $(CORE_O) $(LIB_O) $(LIBS)
+
clean:
$(RM) $(ALL_T) $(ALL_O)