-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CGO_LDFLAGS*
#434
Fix CGO_LDFLAGS*
#434
Conversation
For static build, get pc info from the freshly built libbpf.a instead of the system one. For dynamic build, set only the required ldflags for the system libbpf.
63c7b91
to
ca439ef
Compare
libzstd may be a dependency on libelf, which is a dependency on libbpf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -20,7 +20,7 @@ runs: | |||
sudo apt-get install --yes pkgconf | |||
sudo apt-get install --yes llvm-12 clang-12 | |||
sudo apt-get install --yes clang-format-12 | |||
sudo apt-get install --yes zlib1g-dev libelf-dev | |||
sudo apt-get install --yes libelf-dev libzstd-dev zlib1g-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you only really need libelf-dev
, the rest is automatically pulled in:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's indeed. In fact, it could just be the main libbpf-dev
, but it might be good to have them listed so that users from different environments (even tarball ones) can take a look at what is needed. @rscampos FYI.
Close: #429
commit 56601b4
commit 85ef759