Module: kamailio
Branch: master
Commit: 56c859785ba01047246f5ef9e7d7e454e16ee08d
URL:
https://github.com/kamailio/kamailio/commit/56c859785ba01047246f5ef9e7d7e45…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-07T11:40:38+02:00
app_sqlang: detect arch for compiling squirrel lang libs
---
Modified: src/modules/app_sqlang/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/56c859785ba01047246f5ef9e7d7e45…
Patch:
https://github.com/kamailio/kamailio/commit/56c859785ba01047246f5ef9e7d7e45…
---
diff --git a/src/modules/app_sqlang/Makefile b/src/modules/app_sqlang/Makefile
index 481d13ec56..b93ae18188 100644
--- a/src/modules/app_sqlang/Makefile
+++ b/src/modules/app_sqlang/Makefile
@@ -10,12 +10,19 @@ NAME=app_sqlang.so
DEFS+=-DKAMAILIO_MOD_INTERFACE -I./squirrel/include
LIBS += -L. -lsquirrel -lsqstdlib -lstdc++
+MKSQLANG=
+
+SQLANGARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/')
+ifeq ($(SQLANGARCHBSZ),64b)
+ MKSQLANG=sq64
+endif
+
include ../../Makefile.modules
libsquirrel.a:
- make -C ./squirrel/squirrel
+ make -C ./squirrel/squirrel $(MKSQLANG)
libsqstdlib.a:
- make -C ./squirrel/sqstdlib
+ make -C ./squirrel/sqstdlib $(MKSQLANG)
app_sqlang.so: libsquirrel.a libsqstdlib.a