Skip to content
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

Add -lkstat to the .pc for Solaris #1801

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Conversation

ccotter
Copy link
Contributor

@ccotter ccotter commented Jun 10, 2024

This fixes linking for projects that rely on pkg-config to generate the link line on Solaris.

Test plan: Built the project locally on Solaris and verified -kstat appears in the .pc file

$ cat lib/pkgconfig/benchmark.pc  | grep Libs.private
Libs.private: -lpthread -lkstat

This fixes linking for projects that rely on pkg-config to generate the
link line on Solaris.

Test plan: Built the project locally on Solaris and verified -kstat
appears in the .pc file

```
$ cat lib/pkgconfig/benchmark.pc  | grep Libs.private
Libs.private: -lpthread -lkstat
```
Copy link

google-cla bot commented Jun 10, 2024

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.

@@ -8,5 +8,5 @@ Description: Google microbenchmark framework
Version: @VERSION@

Libs: -L${libdir} -lbenchmark
Libs.private: -lpthread
Libs.private: -lpthread @pkg_config_private_libs@
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with @BENCHMARK_PRIVATE_LINK_LIBRARIES@

@ccotter
Copy link
Contributor Author

ccotter commented Jun 10, 2024

Will get the CLA stuff sorted.

Copy link
Collaborator

@LebedevRI LebedevRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thank you!

@LebedevRI LebedevRI merged commit 71f4218 into google:main Jul 3, 2024
80 checks passed
@ccotter ccotter deleted the fix-solaris-pc branch July 3, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants