Commit 70200c5f authored by gejun's avatar gejun

replace readlink with realpath which behaves more consistently on different linux or even mac

parent c3961083
......@@ -16,8 +16,8 @@ eval set -- "$TEMP"
# Convert to abspath always so that generated mk is include-able from everywhere
while true; do
case "$1" in
--headers ) HDRS_IN="$(readlink -f $2)"; shift 2 ;;
--libs ) LIBS_IN="$(readlink -f $2)"; shift 2 ;;
--headers ) HDRS_IN="$(realpath $2)"; shift 2 ;;
--libs ) LIBS_IN="$(realpath $2)"; shift 2 ;;
--cc ) CC=$2; shift 2 ;;
--cxx ) CXX=$2; shift 2 ;;
--with-glog ) WITH_GLOG=1; shift 1 ;;
......
......@@ -113,8 +113,6 @@ $ sh config_brpc.sh --headers=.. --libs=..
$ make
```
Note: don't put ~ (tilde) in paths to --headers/--libs, it's not converted.
# Supported deps
## GCC: 4.8-7.1
......
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