Skip to content

Commit

Permalink
Better build support for systems with pkg-config. Closes #584
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jun 7, 2012
1 parent 2a67e17 commit 5c0e5c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.ja.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* The "nokogiri" script now has more verbose output when passed the `--rng` option. (Thanks, Dan Radez!)
* Build support on hardened Debian systems that use `-Werror=format-security`. #680.
* Better build support for systems with pkg-config. #584

* Bugfixes

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* The "nokogiri" script now has more verbose output when passed the `--rng` option. (Thanks, Dan Radez!)
* Build support on hardened Debian systems that use `-Werror=format-security`. #680.
* Better build support for systems with pkg-config. #584

* Bugfixes

Expand Down
4 changes: 3 additions & 1 deletion ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def asplode(lib)
abort "-----\n#{lib} is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.\n-----"
end

pkg_config('libxslt') if RUBY_PLATFORM =~ /mingw/
pkg_config('libxslt')
pkg_config('libxml-2.0')
pkg_config('libiconv')

asplode "libxml2" unless find_header('libxml/parser.h')
asplode "libxslt" unless find_header('libxslt/xslt.h')
Expand Down

0 comments on commit 5c0e5c3

Please sign in to comment.