Skip to content

Commit

Permalink
make: Compile bare minimal libpcap.a
Browse files Browse the repository at this point in the history
Also, move installation of dependencies to "release" target.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
  • Loading branch information
brb committed Jul 4, 2023
1 parent 55d7fb3 commit a3c0e90
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ $(TARGET):
-X 'github.com/cilium/pwru/internal/pwru.Version=${VERSION}'"

libpcap.a:
apt update && apt-get install -y curl unzip gcc flex bison make && \
curl https://github.com/the-tcpdump-group/libpcap/archive/refs/tags/libpcap-1.10.4.zip -OL && \
unzip -o libpcap-1.10.4.zip && \
cd libpcap-libpcap-1.10.4/ && \
./configure --enable-dbus=no && \
make && \
make install

curl https://github.com/the-tcpdump-group/libpcap/archive/refs/tags/libpcap-1.10.4.zip -OL
unzip -o libpcap-1.10.4.zip
cd libpcap-libpcap-1.10.4/ && \
./configure --disable-shared --disable-usb --disable-netmap --disable-bluetooth --disable-dbus --without-libnl && \
make && \
make install

release:
docker run \
Expand Down

0 comments on commit a3c0e90

Please sign in to comment.