From 0a9e3f0eae88b5ff64e845cc3aa13dd317e46ead Mon Sep 17 00:00:00 2001 From: WolverinDEV <git@mcgalaxy.de> Date: Sat, 26 Oct 2019 00:03:58 +0200 Subject: [PATCH] Fixed missing -fPIC parameter --- third_party/build_unbound.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"