From c433918ec056f0b6a1b6ecbce01e03f62bc68ebf Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Fri, 25 Jul 2014 19:07:13 -0400 Subject: [PATCH] lua: add LDFLAGS to Solaris build Signed-off-by: Jean-Baptiste Kempf --- 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 64c7ad145c..8be4af276b 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 -- GitLab