[vlc-devel] [PATCH 2/2] lua: add LDFLAGS to Solaris build

Sean McGovern gseanmcg at gmail.com
Sat Jul 26 01:07:13 CEST 2014


---
 contrib/src/lua/rules.mak |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index 64c7ad1..8be4af2 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -51,6 +51,11 @@ ifdef HAVE_DARWIN_OS
 		-e 's%LDFLAGS=%LDFLAGS=$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' \
 		-i.orig src/Makefile)
 endif
+ifdef HAVE_SOLARIS
+	(cd $(UNPACK_DIR) && \
+	sed -e 's%LIBS="-ldl"$$%LIBS="-ldl" MYLDFLAGS="$(EXTRA_LDFLAGS)"%' \
+		-i.orig src/Makefile)
+endif
 ifdef HAVE_WIN32
 	cd $(UNPACK_DIR) && sed -i.orig -e 's/lua luac/lua.exe luac.exe/' Makefile
 endif
-- 
1.7.9.2




More information about the vlc-devel mailing list