From 5be65ac76ecc14da0b67aaebbae9e68683635efd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 17 Jan 2017 13:17:25 +0100 Subject: [PATCH] Fixed SONAME --- scripts/android-build-openssl.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/android-build-openssl.sh b/scripts/android-build-openssl.sh index f23031eea..de2c7474b 100755 --- a/scripts/android-build-openssl.sh +++ b/scripts/android-build-openssl.sh @@ -55,7 +55,8 @@ function build { common_run mkdir -p $DST_DIR fi - common_run ${CROSS_COMPILE}gcc --sysroot=${CROSS_SYSROOT} -shared -o $DST_DIR/libfreerdp-openssl.so -Wl,-whole-archive libcrypto.a libssl.a -Wl,-no-whole-archive + SONAME=libfreerdp-openssl.so + common_run ${CROSS_COMPILE}gcc --sysroot=${CROSS_SYSROOT} -shared -fPIC -Wl,-soname,$SONAME -o $DST_DIR/$SONAME -Wl,-whole-archive libcrypto.a libssl.a -Wl,-no-whole-archive common_run cd $BASE }