Skip to content

Use pkg-config to locate libprofiler #10

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

Merged
merged 2 commits into from
Nov 15, 2019
Merged

Conversation

jmmv
Copy link
Contributor

@jmmv jmmv commented Jan 15, 2019

There is no guarantee that libprofiler is available on "standard"
locations, which means that simply trying to link to it with -lprofiler
is bound to fail.

For example: a user may have installed gperftools under their home
directory, in which case this crate cannot find it.

To resolve this, use pkg-config to locate the library. This allows
this crate to learn all compiler and linker flags (in particular, -L)
needed to use the libprofiler library.

@jmmv jmmv force-pushed the pkg-config branch 2 times, most recently from 38f6840 to d123011 Compare January 15, 2019 19:07
There is no guarantee that libprofiler is available on "standard"
locations, which means that simply trying to link to it with -lprofiler
is bound to fail.

For example: a user may have installed gperftools under their home
directory, in which case this crate cannot find it.

To resolve this, use pkg-config to locate the library.  This allows
this crate to learn all compiler and linker flags (in particular, -L)
needed to use the libprofiler library.
@jmmv
Copy link
Contributor Author

jmmv commented Jan 29, 2019

Ping! Any chance this could be merged and a new release made with it?

@AtheMathmo
Copy link
Owner

Sorry for the huge delay. I lack time to manage my various public repos at the moment :(. If the PR still looks good to you after the conflict resolution I will merge and republish the crate.

@jmmv
Copy link
Contributor Author

jmmv commented Nov 6, 2019

Seems good to me. Thanks.

@AtheMathmo AtheMathmo merged commit e91e0cf into AtheMathmo:master Nov 15, 2019
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