summaryrefslogtreecommitdiff
path: root/build-chroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-chroot.sh')
-rwxr-xr-xbuild-chroot.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/build-chroot.sh b/build-chroot.sh
index fa9e18d..247c008 100755
--- a/build-chroot.sh
+++ b/build-chroot.sh
@@ -509,16 +509,14 @@ make -j $THREADS
make -j $THREADS install
cd ..
-# net-tools Build
-tar xf ../sources/net-tools-*.tar*
-cd net-tools-*/
-# NOTE: We are passing BASH=1 because the configure script apparently relies on
-# some bashism and zsh doesn't set this environment variable. Nobody tell
-# it that we aren't actually using bash. :) ~ahill
-# NOTE: zsh doesn't support set -h, so we'll just patch that out. ~ahill
-sed -i "s/set -f -h/set -f/" configure.sh
-BASH=1 make config
-make -j $THREADS
+# iproute2 Build
+tar xf ../sources/iproute2-*.tar*
+cd iproute2-*/
+./configure --color auto --include_dir /usr/include --libdir /lib
+# NOTE: It seems that iproute2's configuration script isn't compatible with
+# musl, which means we need to manually define HAVE_HANDLE_AT and
+# HAVE_SETNS to make it work properly. ~ahill
+CFLAGS="$(CFLAGS) -DHAVE_HANDLE_AT -DHAVE_SETNS" make -j $THREADS CC=clang
make -j $THREADS install
cd ..