Unverified Commit 1eeee3d0 authored by Ge Jun's avatar Ge Jun Committed by GitHub

Merge pull request #723 from wenweihu86/master

fix build  scripts under mac os env and add building section for README
parents 00b1c38b 508d85ce
......@@ -136,12 +136,16 @@ find_dir_of_header_or_die() {
$ECHO $dir
}
# User specified path of openssl, if not given it's empty
OPENSSL_LIB=$(find_dir_of_lib ssl)
# Inconvenient to check these headers in baidu-internal
#PTHREAD_HDR=$(find_dir_of_header_or_die pthread.h)
OPENSSL_HDR=$(find_dir_of_header_or_die openssl/ssl.h)
if [ "$SYSTEM" = "Darwin" ]; then
OPENSSL_LIB="/usr/local/opt/openssl/lib"
OPENSSL_HDR="/usr/local/opt/openssl/include"
else
# User specified path of openssl, if not given it's empty
OPENSSL_LIB=$(find_dir_of_lib ssl)
# Inconvenient to check these headers in baidu-internal
#PTHREAD_HDR=$(find_dir_of_header_or_die pthread.h)
OPENSSL_HDR=$(find_dir_of_header_or_die openssl/ssl.h)
fi
if [ $WITH_MESALINK != 0 ]; then
MESALINK_HDR=$(find_dir_of_header_or_die mesalink/openssl/ssl.h)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment