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

extconf.rb: Don't call pkg_config when using bundled libraries #931

Conversation

sorah
Copy link
Contributor

@sorah sorah commented Jul 2, 2013

This patch changes to call pkg_config only when NOKOGIRI_USE_SYSTEM_LIBRARIES specified,
because pkg_config isn't required when using bundled libraries.

And this works as workaround for the bug in 2.0.0-p0, 195, 247: https://bugs.ruby-lang.org/issues/8595

2.0.0-p{0,195,247}'s mkmf modifies $LDFLAGS after calling pkg_config. (Already fixed in upstream.. waiting for next release)

pkg_config('libxml-2.0') removes -rpath that added by extconf.rb, so compiled binary will be linked with system's installation.

knu added a commit that referenced this pull request Jul 2, 2013
…dled_libraries

extconf.rb: Don't call pkg_config when using bundled libraries
@knu knu merged commit 7a54b1f into sparklemotion:master Jul 2, 2013
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