blob: 84186e0f8df1a64dbc1e64f412d87c1b692b894d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | #!/bin/sh -e
export LDFLAGS="$LDFLAGS -static"
./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --disable-shared \
    --enable-static \
    --enable-libipq \
    --with-xtlibdir=/usr/lib/xtables \
    --disable-nftables
clsed '/^#include <netinet\/ether.h>/d' libxtables/xtables.c
clsed 's/u_int16_t/uint16_t/g' iptables/xshared.h
make LDFLAGS="$LDFLAGS -all-static"
make DESTDIR="$1" install
 |