openssl: Fix 64-bit build
This commit is contained in:
parent
ce2a8eac82
commit
68b9813716
|
@ -13,10 +13,11 @@ TERMUX_PKG_BUILD_IN_SRC=yes
|
||||||
termux_step_configure () {
|
termux_step_configure () {
|
||||||
perl -p -i -e "s@TERMUX_CFLAGS@$CFLAGS@g" Configure
|
perl -p -i -e "s@TERMUX_CFLAGS@$CFLAGS@g" Configure
|
||||||
rm -Rf $TERMUX_PREFIX/lib/libcrypto.* $TERMUX_PREFIX/lib/libssl.*
|
rm -Rf $TERMUX_PREFIX/lib/libcrypto.* $TERMUX_PREFIX/lib/libssl.*
|
||||||
test $TERMUX_ARCH = "arm" && TERMUX_OPENSSL_PLATFORM_SUFFIX=armv7
|
TERMUX_OPENSSL_PLATFORM_SUFFIX=""
|
||||||
test $TERMUX_ARCH = "i686" && TERMUX_OPENSSL_PLATFORM_SUFFIX=x86
|
test $TERMUX_ARCH = "arm" && TERMUX_OPENSSL_PLATFORM_SUFFIX="-armv7"
|
||||||
|
test $TERMUX_ARCH = "i686" && TERMUX_OPENSSL_PLATFORM_SUFFIX="-x86"
|
||||||
# If enabling zlib-dynamic we need "zlib-dynamic" instead of "no-comp no-dso":
|
# If enabling zlib-dynamic we need "zlib-dynamic" instead of "no-comp no-dso":
|
||||||
./Configure android-$TERMUX_OPENSSL_PLATFORM_SUFFIX --prefix=$TERMUX_PREFIX \
|
./Configure android$TERMUX_OPENSSL_PLATFORM_SUFFIX --prefix=$TERMUX_PREFIX \
|
||||||
--openssldir=$TERMUX_PREFIX/etc/tls \
|
--openssldir=$TERMUX_PREFIX/etc/tls \
|
||||||
shared \
|
shared \
|
||||||
no-comp no-dso \
|
no-comp no-dso \
|
||||||
|
|
Loading…
Reference in New Issue