From 59b97448b63615c34f9c76b3746a3bfbd516ecad Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 28 Aug 2022 19:56:31 +0200 Subject: [PATCH] build.sh: force use of -fPIC on static libraries to fix build error Signed-off-by: Felix Fietkau --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2