diff --git a/third_party/build_boringssl.sh b/third_party/build_boringssl.sh index 8d542f6..5c5c64b 100755 --- a/third_party/build_boringssl.sh +++ b/third_party/build_boringssl.sh @@ -36,7 +36,7 @@ if [[ "x86" == "${build_os_arch}" ]]; then T32="-DCMAKE_TOOLCHAIN_FILE=../util/32-bit-toolchain.cmake" fi -cmake .. -DOPENSSL_NO_ASM=ON -DCMAKE_CXX_FLAGS="-Wno-error=format= -Wno-error=format-extra-args -Wno-error=misleading-indentation -Wno-error=maybe-uninitialized ${CXX_FLAGS}" -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="${C_FLAGS} -Wno-error=misleading-indentation -Wno-error=maybe-uninitialized" -DCMAKE_BUILD_TYPE=Release ${CMAKE_OPTIONS} -DCMAKE_VERBOSE_MAKEFILE=1 ${T32} +cmake .. -DOPENSSL_NO_ASM=ON -DCMAKE_CXX_FLAGS="-fPIC -Wno-error=format= -Wno-error=format-extra-args -Wno-error=misleading-indentation -Wno-error=maybe-uninitialized ${CXX_FLAGS}" -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="${C_FLAGS} -fPIC -Wno-error=misleading-indentation -Wno-error=maybe-uninitialized" -DCMAKE_BUILD_TYPE=Release ${CMAKE_OPTIONS} -DCMAKE_VERBOSE_MAKEFILE=1 ${T32} check_err_exit ${library_path} "Failed to execute cmake!" make ${CMAKE_MAKE_OPTIONS} check_err_exit ${library_path} "Failed to build!"