diff --git a/third_party/build_unbound.sh b/third_party/build_unbound.sh index 1a66187..8e71bc7 100755 --- a/third_party/build_unbound.sh +++ b/third_party/build_unbound.sh @@ -31,7 +31,7 @@ if [[ ${build_os_type} == "linux" ]]; then # --with-ssl=${library_boringssl} ../../configure --with-libunbound-only --with-libevent=${library_event} --enable-event-api --enable-shared=no --enable-static=yes --with-pthreads --enable-pic --prefix=`pwd` check_err_exit ${library_path} "Failed to configure build" - make CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${MAKE_OPTIONS} + make CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS} -fPIC" ${MAKE_OPTIONS} check_err_exit ${library_path} "Failed to build" make install check_err_exit ${library_path} "Failed to install"