aboutsummaryrefslogtreecommitdiffstats
path: root/lang/lua51
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-05-27 02:29:33 +0800
committerbapt <bapt@FreeBSD.org>2014-05-27 02:29:33 +0800
commit975a894d8306c404ebccb9995cc7269baaacf006 (patch)
treea16d21efa229668e9b54c6e5575380fe03960c82 /lang/lua51
parentea848ffe32e8f79b789fb3bb3c96dd60bf7b182f (diff)
downloadfreebsd-ports-gnome-975a894d8306c404ebccb9995cc7269baaacf006.tar.gz
freebsd-ports-gnome-975a894d8306c404ebccb9995cc7269baaacf006.tar.zst
freebsd-ports-gnome-975a894d8306c404ebccb9995cc7269baaacf006.zip
Add forgotten patch
Reported by: many
Diffstat (limited to 'lang/lua51')
-rw-r--r--lang/lua51/files/patch-src__Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/lua51/files/patch-src__Makefile b/lang/lua51/files/patch-src__Makefile
new file mode 100644
index 000000000000..800d54abab72
--- /dev/null
+++ b/lang/lua51/files/patch-src__Makefile
@@ -0,0 +1,27 @@
+--- ./src/Makefile.orig 2012-02-13 21:41:22.000000000 +0100
++++ ./src/Makefile 2014-04-21 18:56:02.738071455 +0200
+@@ -31,12 +31,13 @@
+
+ LUA_T= lua
+ LUA_O= lua.o
++LUA_SO= liblua.so
+
+ LUAC_T= luac
+ LUAC_O= luac.o print.o
+
+ ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ ALL_A= $(LUA_A)
+
+ default: $(PLAT)
+@@ -47,6 +48,9 @@
+
+ a: $(ALL_A)
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $?
++
+ $(LUA_A): $(CORE_O) $(LIB_O)
+ $(AR) $@ $(CORE_O) $(LIB_O) # DLL needs all object files
+ $(RANLIB) $@