Skip to content

Commit

Permalink
Add command to disable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xdien committed Sep 8, 2021
1 parent 88adefc commit a61e1a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ sleep 3
# need change
export OPENSSL_VERSION="openssl-1.1.1l"
curl -O "https://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz"
rm -rf ${OPENSSL_VERSION}
tar xfz "${OPENSSL_VERSION}.tar.gz"


PROJECT_HOME=`pwd`
PATH_ORG=$PATH
Expand Down Expand Up @@ -43,7 +42,8 @@ build_android_clang() {
# Build openssl libraries
#perl -pi -w -e 's/\-mandroid//g;' ./Configure
PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
#export CFLAGS="-Werror -O3"
#turn off warning macro-redefined
# export CFLAGS="-Wno-macro-redefined -O3"
./Configure $CONFIGURE_PLATFORM -D__ANDROID_API__=$ANDROID_API shared threads no-asm no-sse2 no-ssl2 no-ssl3 no-comp no-hw no-engine

make build_libs -j8
Expand Down

0 comments on commit a61e1a7

Please sign in to comment.