Skip to content

Commit

Permalink
update openssl path
Browse files Browse the repository at this point in the history
  • Loading branch information
wenweihu86 committed Jun 19, 2019
1 parent f85311d commit 3c1a726
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions config_brpc.sh
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/cn/getting_started.md
Expand Up @@ -278,7 +278,7 @@ git clone https://github.com/google/googletest && cd googletest/googletest && mk
### Compile brpc with config_brpc.sh
git clone brpc, cd into the repo and run
```shell
$ sh config_brpc.sh --headers=/usr/local --libs=/usr/local --cc=clang --cxx=clang++
$ sh config_brpc.sh --headers=/usr/local/include --libs=/usr/local/lib --cc=clang --cxx=clang++
$ make
```
To not link debugging symbols, add `--nodebugsymbols` and compiled binaries will be much smaller.
Expand Down

0 comments on commit 3c1a726

Please sign in to comment.