pex: add support for sending endpoint notification from the wg port via raw socket
[project/unetd.git] / build.sh
index f4044398f680f60670a9440f8bbbfe53f0456dd6..7e35993e5145cb443f6bc1b6d4fbc6a336c464d1 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -22,11 +22,15 @@ clone() (
 UNAME="$(uname)"
 set -e -x
 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
 rm -f install/lib/*.{so,dylib}
 if [ "$UNAME" = "Linux" ]; then