Module: kamailio
Branch: master
Commit: a327cc0e3e0a2d99680840667ba2985857fbe7fa
URL:
https://github.com/kamailio/kamailio/commit/a327cc0e3e0a2d99680840667ba2985…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2023-10-05T01:09:25+08:00
tls_wolfssl: clean up build
Allow module to build if user specifies prefix= exec-prefix= on
commandline
---
Modified: src/modules/tls_wolfssl/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/a327cc0e3e0a2d99680840667ba2985…
Patch:
https://github.com/kamailio/kamailio/commit/a327cc0e3e0a2d99680840667ba2985…
---
diff --git a/src/modules/tls_wolfssl/Makefile b/src/modules/tls_wolfssl/Makefile
index 75ec31b204d..730076023a9 100644
--- a/src/modules/tls_wolfssl/Makefile
+++ b/src/modules/tls_wolfssl/Makefile
@@ -23,14 +23,14 @@ $(WOLFSSL_PREFIX)/include/wolfssl/options.h
$(WOLFSSL_PREFIX)/lib/libwolfssl.a:
./autogen.sh; \
fi; \
if [ ! -f "Makefile" ]; then \
- env -u DEFS -u CFLAGS -u LDFLAGS -u LIBS EXTRA_CFLAGS="-g -fPIC" ./configure
\
+ env -u DEFS -u CFLAGS -u LDFLAGS -u LIBS EXTRA_CFLAGS="-g -O2 -fPIC"
./configure \
--enable-all --enable-pkcs11 --enable-static --enable-writedup \
--disable-aligndata --disable-shared --disable-examples \
--disable-jni --disable-crl-monitor \
--prefix=$(CURDIR)/$(WOLFSSL_PREFIX) \
--exec-prefix=$(CURDIR)/$(WOLFSSL_PREFIX); \
fi;
- @$(MAKE) -C $(WOLFSSL_SRC) install
+ @$(MAKE) -C $(WOLFSSL_SRC) prefix=$(CURDIR)/$(WOLFSSL_PREFIX)
exec-prefix=$(CURDIR)/$(WOLFSSL_PREFIX) install
$(NAME): $(WOLFSSL_PREFIX)/lib/libwolfssl.a