aboutsummaryrefslogtreecommitdiff
path: root/extra/iptables/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/iptables/build')
-rwxr-xr-xextra/iptables/build10
1 files changed, 7 insertions, 3 deletions
diff --git a/extra/iptables/build b/extra/iptables/build
index 68ed828e..33e64b1a 100755
--- a/extra/iptables/build
+++ b/extra/iptables/build
@@ -1,11 +1,15 @@
#!/bin/sh -e
+export LDFLAGS="$LDFLAGS -static"
+
./configure \
--prefix=/usr \
- --sbindir=/usr/sbin \
+ --sbindir=/usr/bin \
+ --disable-shared \
+ --enable-static \
--enable-libipq \
- --with-xtlibdir=/lib/xtables \
+ --with-xtlibdir=/usr/lib/xtables \
--disable-nftables
-make
+make LDFLAGS="$LDFLAGS -all-static"
make DESTDIR="$1" install