Commit 40d2dad6 authored by wangxuefeng's avatar wangxuefeng

Fix config_brpc.sh

parent 00a5accf
...@@ -130,18 +130,18 @@ OPENSSL_HDR=$(find_dir_of_header_or_die openssl/ssl.h) ...@@ -130,18 +130,18 @@ OPENSSL_HDR=$(find_dir_of_header_or_die openssl/ssl.h)
STATIC_LINKINGS= STATIC_LINKINGS=
DYNAMIC_LINKINGS="-lpthread -lssl -lcrypto -ldl -lz" DYNAMIC_LINKINGS="-lpthread -lssl -lcrypto -ldl -lz"
if [ "$SYSTEM" = "Linux" ]; then if [ "$SYSTEM" = "Linux" ]; then
DYNAMIC_LINKINGS+=" -lrt" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -lrt"
fi fi
if [ "$SYSTEM" = "Darwin" ]; then if [ "$SYSTEM" = "Darwin" ]; then
DYNAMIC_LINKINGS+=" -framework CoreFoundation" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -framework CoreFoundation"
DYNAMIC_LINKINGS+=" -framework CoreGraphics" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -framework CoreGraphics"
DYNAMIC_LINKINGS+=" -framework CoreData" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -framework CoreData"
DYNAMIC_LINKINGS+=" -framework CoreText" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -framework CoreText"
DYNAMIC_LINKINGS+=" -framework Security" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -framework Security"
DYNAMIC_LINKINGS+=" -framework Foundation" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -framework Foundation"
DYNAMIC_LINKINGS+=" -Wl,-U,_MallocExtension_ReleaseFreeMemory" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -Wl,-U,_MallocExtension_ReleaseFreeMemory"
DYNAMIC_LINKINGS+=" -Wl,-U,_ProfilerStart" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -Wl,-U,_ProfilerStart"
DYNAMIC_LINKINGS+=" -Wl,-U,_ProfilerStop" DYNAMIC_LINKINGS="$DYNAMIC_LINKINGS -Wl,-U,_ProfilerStop"
fi fi
append_linking() { append_linking() {
if [ -f $1/lib${2}.a ]; then if [ -f $1/lib${2}.a ]; then
......
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