aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/asterisk/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD
index b5a55a13ae..0e9446194f 100644
--- a/main/asterisk/APKBUILD
+++ b/main/asterisk/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk
pkgver=12.4.0
-pkgrel=0
+pkgrel=1
pkgdesc="Asterisk: A Module Open Source PBX System"
pkgusers="asterisk"
pkggroups="asterisk"
@@ -63,6 +63,10 @@ prepare() {
esac
done
+ # asteriskssl does not have direct references to libssl, but looks up
+ # symbols from it using dlsym(RTLD_NEXT), so use --no-as-needed for it.
+ sed -i -e 's/ASTSSL_LIBS:=$(OPENSSL_LIB)/ASTSSL_LIBS:=-Wl,--no-as-needed $(OPENSSL_LIB) -Wl,--as-needed/g' main/Makefile
+
sed -i -e 's:lua5.1/::' pbx/pbx_lua.c
sed -i -e 's/PBX_ICONV=1/PBX_ICONV=0/g' configure.ac
sed -i -e 's/int foo = res_ninit(NULL);/res_ninit_is_not_really_here();/g' configure.ac