Module: kamailio
Branch: master
Commit: 5757f05832d9cb896b1a5da74a11d2465fad8fd2
URL:
https://github.com/kamailio/kamailio/commit/5757f05832d9cb896b1a5da74a11d24…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-20T18:44:11+02:00
app_sqlang: add -fPIC to compile options of squirrel libs
---
Modified: src/modules/app_sqlang/squirrel/sqstdlib/Makefile
Modified: src/modules/app_sqlang/squirrel/squirrel/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/5757f05832d9cb896b1a5da74a11d24…
Patch:
https://github.com/kamailio/kamailio/commit/5757f05832d9cb896b1a5da74a11d24…
---
diff --git a/src/modules/app_sqlang/squirrel/sqstdlib/Makefile
b/src/modules/app_sqlang/squirrel/sqstdlib/Makefile
index 62235a1..a2066b2 100644
--- a/src/modules/app_sqlang/squirrel/sqstdlib/Makefile
+++ b/src/modules/app_sqlang/squirrel/sqstdlib/Makefile
@@ -26,7 +26,7 @@ SRCS= \
sq32:
- gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
+ gcc -O2 -fno-exceptions -fPIC -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
ar rc $(OUT) *.o
rm *.o
@@ -36,6 +36,6 @@ sqprof:
rm *.o
sq64:
- gcc -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS)
$(INCZ)
+ gcc -O2 -m64 -fno-exceptions -fPIC -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c
$(SRCS) $(INCZ)
ar rc $(OUT) *.o
rm *.o
diff --git a/src/modules/app_sqlang/squirrel/squirrel/Makefile
b/src/modules/app_sqlang/squirrel/squirrel/Makefile
index 379b95d..3f62f58 100644
--- a/src/modules/app_sqlang/squirrel/squirrel/Makefile
+++ b/src/modules/app_sqlang/squirrel/squirrel/Makefile
@@ -37,7 +37,7 @@ SRCS= \
sq32:
- gcc -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
+ gcc -O2 -fno-exceptions -fPIC -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ)
$(DEFS)
ar rc $(OUT) *.o
rm *.o
@@ -47,6 +47,6 @@ sqprof:
rm *.o
sq64:
- gcc -O2 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS)
$(INCZ) $(DEFS)
+ gcc -O2 -m64 -D_SQ64 -fno-exceptions -fPIC -fno-rtti -Wall -fno-strict-aliasing -c
$(SRCS) $(INCZ) $(DEFS)
ar rc $(OUT) *.o
rm *.o