Skip to content

Commit 59b9744

Browse files
committed
build.sh: force use of -fPIC on static libraries to fix build error
Signed-off-by: Felix Fietkau <[email protected]>
1 parent 5cbd55f commit 59b9744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ rm -rf install
2525
mkdir -p install
2626
ln -s lib install/lib64
2727
clone libubox git://git.openwrt.org/project/libubox.git
28-
build libubox -DBUILD_LUA=off
28+
build libubox -DBUILD_LUA=off -DCMAKE_POSITION_INDEPENDENT_CODE=on
2929
if [ "$UNAME" = "Linux" ]; then
3030
clone libnl-tiny git://git.openwrt.org/project/libnl-tiny.git
31-
build libnl-tiny -DBUILD_LUA=off
31+
build libnl-tiny -DBUILD_LUA=off -DCMAKE_POSITION_INDEPENDENT_CODE=on
3232
clone libbpf https://github.com/libbpf/libbpf
3333
make -j9 -C libbpf/src PREFIX=$PWD/install all install
3434
fi

0 commit comments

Comments
 (0)