Skip to content

Commit

Permalink
hacky way to patch/remove hard depency on libpcap.so.0.8 post build
Browse files Browse the repository at this point in the history
  • Loading branch information
kochd authored and phendryx committed Oct 8, 2023
1 parent ddb5c3c commit f7e923d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

set -eo pipefail

sudo apt-get update && sudo apt-get install -y libpcap-dev
sudo apt-get update && sudo apt-get install -y libpcap-dev patchelf

env | sort

go build -ldflags "-s -w -X main.version=$GITHUB_REF_NAME" albiondata-client.go
patchelf --replace-needed libpcap.so.0.8 libpcap.so albiondata-client

./albiondata-client -version

Expand Down

0 comments on commit f7e923d

Please sign in to comment.