-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
avoid dependency on share/bcc/include/ #333
Labels
Comments
drzaeus77
pushed a commit
that referenced
this issue
Feb 18, 2016
To avoid installing header files needed by clang to disk (/usr/share/bcc), embed the files as strings inside the library and feed them to clang as memory buffers. The mechanism that we use to do this retains all of the existing features, as in one can still do `#include <bcc/helpers.h>`, even though it is redundant, and clang will pick up the embedded file. Fixes: #333 Signed-off-by: Brenden Blanco <[email protected]>
drzaeus77
pushed a commit
that referenced
this issue
Feb 18, 2016
To avoid installing header files needed by clang to disk (/usr/share/bcc), embed the files as strings inside the library and feed them to clang as memory buffers. The mechanism that we use to do this retains all of the existing features, as in one can still do `#include <bcc/helpers.h>`, even though it is redundant, and clang will pick up the embedded file. Fixes: #333 Signed-off-by: Brenden Blanco <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installing helpers.h, proto.h and stdarg.h into default location
makes distribution and versioning of libbcc very difficult.
libbcc should embed them as text string as part of the library
and only depend on the presence of kernel headers in /lib/modules/
high-pri since it's a major road block for production deployment.
The text was updated successfully, but these errors were encountered: