Skip to content

Commit

Permalink
Merge pull request #1851 from mlj/mojave-build
Browse files Browse the repository at this point in the history
Add SDK-specific include path for macOS Mojave
  • Loading branch information
flavorjones committed Jan 5, 2019
2 parents 4a448d1 + fc9254f commit f5dfa71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/nokogiri/extconf.rb
Expand Up @@ -392,6 +392,10 @@ def using_system_libraries?
do_clean
end

if darwin?
ENV['CFLAGS'] = "#{ENV['CFLAGS']} -I /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2"
end

if openbsd? && !using_system_libraries?
if `#{ENV['CC'] || '/usr/bin/cc'} -v 2>&1` !~ /clang/
ENV['CC'] ||= find_executable('egcc') or
Expand Down

0 comments on commit f5dfa71

Please sign in to comment.