From: Felix Fietkau Date: Sun, 28 Aug 2022 17:56:31 +0000 (+0200) Subject: build.sh: force use of -fPIC on static libraries to fix build error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=59b97448b63615c34f9c76b3746a3bfbd516ecad;p=project%2Funetd.git build.sh: force use of -fPIC on static libraries to fix build error Signed-off-by: Felix Fietkau --- diff --git a/build.sh b/build.sh index 9085334..7e35993 100755 --- a/build.sh +++ b/build.sh @@ -25,10 +25,10 @@ rm -rf install mkdir -p install ln -s lib install/lib64 clone libubox git://git.openwrt.org/project/libubox.git -build libubox -DBUILD_LUA=off +build libubox -DBUILD_LUA=off -DCMAKE_POSITION_INDEPENDENT_CODE=on if [ "$UNAME" = "Linux" ]; then clone libnl-tiny git://git.openwrt.org/project/libnl-tiny.git - build libnl-tiny -DBUILD_LUA=off + build libnl-tiny -DBUILD_LUA=off -DCMAKE_POSITION_INDEPENDENT_CODE=on clone libbpf https://github.com/libbpf/libbpf make -j9 -C libbpf/src PREFIX=$PWD/install all install fi