-
Notifications
You must be signed in to change notification settings - Fork 249
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
How to make derived header-only libraries? #244
Comments
Hi @rnburn, you can have only one configure_make target, with different paths to select only headers or headers and libraries together. genrule(
|
Thanks @irengrig. I'm still having some trouble getting this to work. Here's the setup I have to produce a cpython_header_only library to use with a C++ python module
But I get the error
Any ideas? |
I was able to get things to work with this variant
though not sure why that fixed the problem |
Another curious error If I use this version (which works better when the project is used externally bazelbuild/bazel#2670 )
I get
|
@irengrig - this approach doesn't quite work. It still links in dependencies. This is my setup for a cpython_header_only library. But when I build I get
And
|
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_foreign_cc! |
This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?" |
I'm using bazel to build an apache module. I have dependencies set up like this
When I build a
.so
apache module, I need to include theapr
dependency headers but not link tolibapr-1.a
because those symbols are resolved when the module is loaded into the apache binary. Is there a way that I can make a derivedcc_library
from:apr
that only has the headers?I'm currently adding an additional configure_make like this
But that hardly seems optimal as I have to configure_make apr twice.
The text was updated successfully, but these errors were encountered: