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

Ignore library search paths returned by pkg-config. #354

Conversation

arthurschreiber
Copy link
Member

Instead of adding the output of pkg-config --libs --static directly
to $LDFLAGS, we append only the -l part to $libs.

This is to fix an issue where trying to build rugged with a
pre-installed libgit2 version would link against that version.

pkg-config --libs --static includes something along the lines
of -L${libdir}, where ${libdir} could point to the folder
containing the pre-installed libgit2 version.

This fixes #351.

Instead of adding the output of `pkg-config --libs --static` directly
to `$LDFLAGS`, we append only the `-l` part to `$libs`.

This is to fix an issue where trying to build rugged with a
pre-installed libgit2 version would link against that version.

`pkg-config --libs --static` includes something along the lines
of `-L${libdir}`, where `${libdir}` could point to the folder
containing the pre-installed libgit2 version.
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.

None yet

1 participant