diff --git a/third-party/gflags/build.sh b/third-party/gflags/build.sh index afa0c5ec3c5..f556cc46214 100755 --- a/third-party/gflags/build.sh +++ b/third-party/gflags/build.sh @@ -20,7 +20,7 @@ cd $SOURCE_DIR if [[ $SOURCE_DIR/CMakeLists.txt -nt $SOURCE_DIR/Makefile || $CURR_DIR/build.sh -nt $SOURCE_DIR/Makefile ]]; then - if !($NEBULA_CMAKE $CMAKE_FLAGS -DCMAKE_CXX_FLAGS:STRING="-fPIC -DPIC $EXTRA_CXXFLAGS " -DCMAKE_CC_FLAGS:STRING="-fPIC -DPIC $EXTRA_CXXFLAGS " -DCMAKE_CPP_FLAGS:STRING="-fPIC -DPIC $EXTRA_CXXFLAGS " -DCMAKE_STATIC_LINKER_FLAGS:STRING="" -DCMAKE_LINK_LIBRARY_FLAG="-static-libgcc -static-libstdc++ -lrt" $SOURCE_DIR); then + if !($NEBULA_CMAKE $CMAKE_FLAGS -DCMAKE_CXX_FLAGS:STRING="-fPIC -DPIC $EXTRA_CXXFLAGS " -DCMAKE_BUILD_TYPE=Release -DCMAKE_CC_FLAGS:STRING="-fPIC -DPIC $EXTRA_CXXFLAGS " -DCMAKE_CPP_FLAGS:STRING="-fPIC -DPIC $EXTRA_CXXFLAGS " -DCMAKE_STATIC_LINKER_FLAGS:STRING="" -DCMAKE_LINK_LIBRARY_FLAG="-static-libgcc -static-libstdc++ -lrt" $SOURCE_DIR); then cd $CURR_DIR echo echo "### $PROJECT_NAME failed to configure the build ###"