diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-07-13 14:38:25 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-07-13 14:38:25 +0000 |
commit | c4b1644679fd921d8c24093ed8ed9a8a7acad400 (patch) | |
tree | 7cf37175f6298ee4470e0e3f6b7836cadacbdb0d | |
parent | f681206dc4f9032e3213c366d05bb96ee24dc72a (diff) | |
download | aports-c4b1644679fd921d8c24093ed8ed9a8a7acad400.tar.bz2 aports-c4b1644679fd921d8c24093ed8ed9a8a7acad400.tar.xz |
main/asterisk: fix as-needed introduced underlinking
libasteriskssl requires libssl, but only for dynamic symbol lookups.
-rw-r--r-- | main/asterisk/APKBUILD | 6 |
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 |