Skip to content

Commit

Permalink
extconf.rb: Don't call pkg_config when using bundled libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
sorah committed Jul 2, 2013
1 parent 37828ec commit e5b9361
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def have_iconv?
XML2_HEADER_DIRS.unshift File.join(brew_prefix, 'include/libxml2')
end

pkg_config('libxslt')
pkg_config('libxml-2.0')
else
require 'mini_portile'
require 'yaml'
Expand Down Expand Up @@ -220,9 +222,6 @@ def each_idir
dir_config('xml2', XML2_HEADER_DIRS, LIB_DIRS)
dir_config('xslt', HEADER_DIRS, LIB_DIRS)

pkg_config('libxslt')
pkg_config('libxml-2.0')

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

0 comments on commit e5b9361

Please sign in to comment.