-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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 pkg-config protobuf library not dependes from utf8_range #17290
base: main
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
@mdionisio If I'm not mistaken, we do need this because we rely on utf8_range, like here for example:
|
@acozzette I don't say that utf8_range is not used inside protobuf, I say only that If I use protobuf I don't neet to link my program with utf8_range because all the dependency to utf8_range was statically linked directly inside protobuf library. My change is only on ".pc" that is not used from protobuf but it is used from code that use protobuf. I test the fix on protobuf 4.25 in yocto environment building and testing code that only used protobuf library and in more complicated example that use grpc. |
Hmm, I don't think I understand. If we remove |
@acozzette you are probably right. There is also another issue in cmake that doesn't configure protobuf to explicitly link utf8_range. I don't understand exactly why utf8_range was linked anyway. I update my pull request to fix also that. |
@mdionisio Maybe I'm missing something but I think this is still not going to work because it will cause |
@acozzette in my opinion the problem is that |
the .pc file generated insert a dependency to a utf8_range.pc file that is not required