Files
macports-ports/ruby/rb-nokogiri/files/patch-extconf.rb.diff

12 lines
628 B
Diff

--- ext/nokogiri/extconf.rb.orig 2021-09-15 22:20:13.000000000 +0300
+++ ext/nokogiri/extconf.rb 2021-09-15 22:21:00.000000000 +0300
@@ -614,7 +614,7 @@
# append_cflags(["-Wcast-qual", "-Wwrite-strings"])
# Add SDK-specific include path for macOS and brew versions before v2.2.12 (2020-04-08) [#1851, #1801]
-macos_mojave_sdk_include_path = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2"
+macos_mojave_sdk_include_path = "@@PREFIX@@/include/libxml2"
if config_system_libraries? && darwin? && Dir.exist?(macos_mojave_sdk_include_path)
append_cppflags("-I#{macos_mojave_sdk_include_path}")
end