Skip to content

Commit

Permalink
Merge pull request broderickhyman#62 from phendryx/libpcap-build
Browse files Browse the repository at this point in the history
hacky way to patch/remove hard depency on libpcap.so.0.8 post build
  • Loading branch information
phendryx committed Oct 8, 2023
2 parents ddb5c3c + f7e923d commit 9bf70a0
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 9bf70a0

Please sign in to comment.