Skip to content

Commit

Permalink
resolve static compilation of iptables by correcting LDFLAGS (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarrel6 authored Jan 11, 2024
1 parent 656b3e1 commit 9d98a74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions installer/scripts/compile-runtime-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ echo "************************"
tar -xvf libmnl-1.0.4.tar.bz2

export CFLAGS='-static'
export LDFLAGS='-static -dl'
export LDFLAGS='-static'

echo "************************"
echo "* building libmnl *"
Expand Down Expand Up @@ -107,13 +107,12 @@ echo "************************"
echo "* building iptables *"
echo "************************"
cd iptables-1.8.10
./configure --disable-shared --enable-static
export CFLAGS='-static'
export LDFLAGS='-static -dl'
export LDFLAGS='--static'
./configure --disable-shared --enable-static
make
make install


# Copy iptables binary to output directory
echo "*******************************"
echo "* copying iptables to outputs *"
Expand Down

0 comments on commit 9d98a74

Please sign in to comment.