Merge pull request #2998 from andrewyatz/bugfix/pkgconfiglibdir

Bugfix/pkgconfiglibdir
This commit is contained in:
Mike McQuaid 2017-08-07 11:44:58 +01:00 committed by GitHub
commit 5327b304a6
2 changed files with 1 additions and 2 deletions

View File

@ -138,7 +138,6 @@ module Superenv
def determine_pkg_config_libdir
PATH.new(
"/usr/lib/pkgconfig",
homebrew_extra_pkg_config_paths,
).existing
end

View File

@ -28,7 +28,7 @@ module Superenv
# @private
def homebrew_extra_pkg_config_paths
paths = \
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
paths << "#{MacOS::X11.lib}/pkgconfig" << "#{MacOS::X11.share}/pkgconfig" if x11?
paths
end