Module: sip-router
Branch: master
Commit: 231e7fcfdded9fedfc30331642fb9ba9a3a99556
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=231e7fcfdded9fedfc30331642fb9ba9a3a99556

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Mon Jun  4 11:54:09 2012 +0200

app_lua: explicit link against libm only of no pkg-config or lua-config is found

- otherwise it appears two times in the libs linking string

---

 modules/app_lua/Makefile |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/app_lua/Makefile b/modules/app_lua/Makefile
index 7dc9546..8bb5f27 100644
--- a/modules/app_lua/Makefile
+++ b/modules/app_lua/Makefile
@@ -14,10 +14,10 @@ ifeq ($(BUILDER),)
                LUA51 = $(shell ls /usr/lib/liblua* | grep liblua5.1)
                ifeq ($(LUA51),)
                        DEFS+=-I/usr/include/lua
-                       LIBS= -llua
+                       LIBS= -llua -lm
                else
                        DEFS+=-I/usr/include/lua5.1
-                       LIBS= -llua5.1
+                       LIBS= -llua5.1 -lm
                endif
        else
                LUAVER=XX
@@ -34,10 +34,10 @@ ifeq ($(BUILDER),)
                        LUA51 = $(shell ls /usr/lib/liblua* | grep liblua5.1)
                        ifeq ($(LUA51),)
                                DEFS+=-I/usr/include/lua
-                               LIBS= -llua
+                               LIBS= -llua -lm
                        else
                                DEFS+=-I/usr/include/lua5.1
-                               LIBS= -llua5.1
+                               LIBS= -llua5.1 -lm
                        endif
                else
                        ifeq ($(LUAVER),51)
@@ -54,7 +54,6 @@ else
        LIBS = $(shell lua-config --libs)
 endif
 
-LIBS+=-lm
 DEFS+=-DOPENSER_MOD_INTERFACE
 
 SERLIBPATH=../../lib


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to