git:master:56c85978: app_sqlang: detect arch for compiling squirrel lang libs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

git:master:56c85978: app_sqlang: detect arch for compiling squirrel lang libs

Daniel-Constantin Mierla-6
Module: kamailio
Branch: master
Commit: 56c859785ba01047246f5ef9e7d7e454e16ee08d
URL: https://github.com/kamailio/kamailio/commit/56c859785ba01047246f5ef9e7d7e454e16ee08d

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
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/56c859785ba01047246f5ef9e7d7e454e16ee08d.diff
Patch: https://github.com/kamailio/kamailio/commit/56c859785ba01047246f5ef9e7d7e454e16ee08d.patch

---

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


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev