Skip to content

Commit

Permalink
grpc compile -fpic
Browse files Browse the repository at this point in the history
  • Loading branch information
huaixin.lmy committed Sep 25, 2024
1 parent e6efa89 commit eb65f9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpm/devdeps-grpc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb65f9b

Please sign in to comment.