Module: kamailio
Branch: 5.7
Commit: ee9ed43318c8e49432445d33b475c67a3643d761
URL:
https://github.com/kamailio/kamailio/commit/ee9ed43318c8e49432445d33b475c67…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2023-10-05T01:15:45+08:00
tls_wolfssl: clean up build
Allow module to build if user specifies prefix= exec-prefix= on
commandline
Cherry-pick from a327cc0e3e
---
Modified: src/modules/tls_wolfssl/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/ee9ed43318c8e49432445d33b475c67…
Patch:
https://github.com/kamailio/kamailio/commit/ee9ed43318c8e49432445d33b475c67…
---
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