Added -fPIC
This commit is contained in:
parent
af0173dcd6
commit
5acceaa9d5
2
third_party/build_boringssl.sh
vendored
2
third_party/build_boringssl.sh
vendored
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user