Skip to content

Commit

Permalink
android: don't use -mandroid for clang
Browse files Browse the repository at this point in the history
OpenSSL fails to build due to the -mandroid flag
after 'make depend'. try to hack-it-out of the
Makefile.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
  • Loading branch information
neolit123 committed Apr 30, 2018
1 parent d031bb9 commit e5b26f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/android/build.sh
Expand Up @@ -286,6 +286,10 @@ if [ ! -e "$PKG_CONFIG_LIBDIR/libssl.pc" ] ; then
bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir="$PREFIX"
# sed -i.bak -e 's/soname=\$\$SHLIB\$\$SHLIB_SOVER\$\$SHLIB_SUFFIX/soname=\$\$SHLIB/g' Makefile.shared
make depend
# remove the -mandroid flag for clang as it's not supported
if [ ${CC_NAME} = "clang" ]; then
sed -i 's/-mandroid//' Makefile
fi
make
# now fix the reference to libcrypto.so.1.0.0 to be just to libcrypto.so
perl -pi -e 's/libcrypto.so.1.0.0/libcrypto.so\x00\x00\x00\x00\x00\x00/' libssl.so.1.0.0
Expand Down

0 comments on commit e5b26f3

Please sign in to comment.