wenweihu86 commented on a change in pull request #723: fix build  scripts under 
mac os env and add building section for README
URL: https://github.com/apache/incubator-brpc/pull/723#discussion_r274805759
 
 

 ##########
 File path: config_brpc.sh
 ##########
 @@ -138,7 +138,12 @@ find_dir_of_header_or_die() {
 
 # 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_HDR="/usr/local/Cellar/openssl\@1.1/1.1.1b/include"
+    OPENSSL_LIB="/usr/local/Cellar/openssl\@1.1/1.1.1b/lib"
+else
+    OPENSSL_HDR=$(find_dir_of_header_or_die openssl/ssl.h)
+fi
 
 Review comment:
   
之前描述有误,1.0.2r能编译通过,但需要修改config.mk里HDRS和LIBS,加上openssl路径才能编译通过,mac环境下openssl在这个路径下:
   HDRS=/usr/local/Cellar/openssl/1.0.2r/include /usr/local/include/
   LIBS=/usr/local/Cellar/openssl/1.0.2r/lib /usr/local/lib
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to