summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2020-01-18 11:52:19 +0100
committerMartchus2020-01-18 11:52:19 +0100
commit3593a2107556998ed17001631792d1ccf8149a54 (patch)
treea4543de5c00fbd3f33907ac7ddad5acb8e4e85af
parentf861d738e4722b0e42fc8a07e94d95f9dcc8d67c (diff)
downloadaur-3593a2107556998ed17001631792d1ccf8149a54.tar.gz
Use _1_1.so suffix for dynamic libs
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 71947b94e2f..dea5ed3a568 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = android-armv7a-eabi-openssl
pkgdesc = The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (Android, armv7a-eabi)
pkgver = 1.1.1.d
- pkgrel = 1
+ pkgrel = 2
url = https://www.openssl.org
arch = any
license = custom:BSD
diff --git a/PKGBUILD b/PKGBUILD
index 3680f358a6b..61983928a1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,6 @@
_pkg_arch=armv7a-eabi
_android_arch=armeabi-v7a
-_android_platform=21 # https://developer.android.com/about/dashboards/
_android_platform_arch=arch-arm
_pkgname=openssl
_ver=1.1.1d
@@ -11,7 +10,7 @@ _ver=1.1.1d
pkgname=android-$_pkg_arch-$_pkgname
# use a pacman compatible version scheme
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
-pkgrel=1
+pkgrel=2
pkgdesc="The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (Android, $_pkg_arch)"
arch=('any')
url='https://www.openssl.org'
@@ -38,7 +37,7 @@ build() {
./Configure \
--prefix="${ANDROID_PREFIX}" \
--openssldir="${ANDROID_PREFIX}" \
- -D__ANDROID_API__=$_android_platform \
+ -D__ANDROID_API__="${ANDROID_MINIMUM_PLATFORM}" \
-Wl,--no-allow-shlib-undefined \
-Wl,--no-undefined \
no-stdio \
@@ -51,8 +50,10 @@ build() {
sed -i -e 's/\#define TEST_ENG_OPENSSL_RC4_P_INIT//' crypto/engine/eng_openssl.c
# build only libraries
+ # note: Setting SHLIB_EXT in accordance with qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp to avoid loading
+ # system library.
make depend
- make CALC_VERSIONS="SHLIB_COMPAT=; SHLIB_SOVER=" SHLIB_VERSION_NUMBER= SHLIB_EXT=.so build_libs
+ make CALC_VERSIONS="SHLIB_COMPAT=; SHLIB_SOVER=" SHLIB_VERSION_NUMBER= SHLIB_EXT=_1_1.so build_libs
}
package() {
@@ -61,7 +62,7 @@ package() {
export PATH="$ANDROID_TOOLCHAIN:$PATH"
# install header files, libraries and license
- for lib in libcrypto.{a,so} libssl.{a,so}; do
+ for lib in libcrypto{.a,_1_1.so} libssl{.a,_1_1.so}; do
install -D -m0644 $lib "$pkgdir/${ANDROID_PREFIX_LIB}/$lib"
done
for pc in libcrypto.pc libssl.pc openssl.pc; do