mirror of https://github.com/oceanbase/ob-deps.git
grpc compile -fpic
This commit is contained in:
parent
e6efa89691
commit
eb65f9bf35
|
@ -44,6 +44,8 @@ cd third_party/cares/cares
|
|||
# git checkout cares-1_15_0
|
||||
mkdir -p cmake/build
|
||||
cd cmake/build
|
||||
export CFLAGS="-fPIC"
|
||||
export CXXFLAGS="-fPIC"
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=${RPM_BUILD_ROOT}/%{_prefix} -DCARES_STATIC=ON -DCARES_SHARED=OFF -DCARES_STATIC_PIC=ON ../..
|
||||
CPU_CORES=`grep -c ^processor /proc/cpuinfo`
|
||||
make -j${CPU_CORES} install
|
||||
|
|
Loading…
Reference in New Issue