summaryrefslogtreecommitdiffstats
path: root/lua-forge
diff options
context:
space:
mode:
authorRemko van der Vossen2014-07-07 04:00:18 +0900
committerRemko van der Vossen2014-07-07 04:00:18 +0900
commitace693c70f6dc71d61c41eccf1c401bc0c90911e (patch)
treea644318d147b72cd3715dc0d810bd6b47d9acaeb /lua-forge
parentc4580c58db9ed81db2d20d3794fc6a41bf9b54ad (diff)
lua: link liblua.so with libm.so
Diffstat (limited to 'lua-forge')
-rw-r--r--lua-forge/lua/HISTORY3
-rw-r--r--lua-forge/lua/shared.patch2
2 files changed, 4 insertions, 1 deletions
diff --git a/lua-forge/lua/HISTORY b/lua-forge/lua/HISTORY
index 9ebdb3eccc..dbfcdc88b2 100644
--- a/lua-forge/lua/HISTORY
+++ b/lua-forge/lua/HISTORY
@@ -1,3 +1,6 @@
+2014-07-06 Remko van der Vossen <wich@sourcemage.org>
+ * shared.patch: link with libm.so
+
2013-12-10 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: updated spell to 5.2.3
diff --git a/lua-forge/lua/shared.patch b/lua-forge/lua/shared.patch
index fa07115a89..0945e01987 100644
--- a/lua-forge/lua/shared.patch
+++ b/lua-forge/lua/shared.patch
@@ -17,7 +17,7 @@
$(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
+$(LUA_SO): $(CORE_O) $(LIB_O)
-+ $(CC) -o $@ -shared $(LDFLAGS) $(CORE_O) $(LIB_O) -ldl
++ $(CC) -o $@ -shared $(LDFLAGS) $(CORE_O) $(LIB_O) -lm -ldl
+
clean:
$(RM) $(ALL_T) $(ALL_O)