summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-03-26 07:37:39 +0900
committergit <svn-admin@ruby-lang.org>2022-03-26 07:49:52 +0900
commit4acc757d04234d0b128429c152a1ccd96a817cf3 (patch)
tree25ac7f3a79abdf0a0553b36ad5115968bb72cfee
parentf79765abe8dc3eb0a58c5a9dd7e91922e4aca1fa (diff)
downloadruby-4acc757d04234d0b128429c152a1ccd96a817cf3.tar.gz
[ruby/psych] Added condition for macOS homebrew
https://github.com/ruby/psych/commit/a876de5a82 Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
-rw-r--r--ext/psych/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 857f8e68c4..7da73760e3 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -7,7 +7,7 @@ require 'fileutils'
dir_config 'libyaml'
-if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version'))
+if enable_config("bundled-libyaml", false) || !pkg_config('yaml-0.1') && !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version'))
# Embed libyaml since we could not find it.
$VPATH << "$(srcdir)/yaml"