Skip to content

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
```
@google-cla
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.


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
@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