summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-29 10:16:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-05 09:06:35 +0900
commit351db1927ce1b8360106ca00eb3e72889cf38a84 (patch)
tree7d8d6bad4608f63380ee361a3167cead83af4e46 /ext
parent9f8c3655376aecec6056adb2bb12665971980f9f (diff)
downloadpsych-351db1927ce1b8360106ca00eb3e72889cf38a84.zip
Add dependency on bundled yaml.h when using
ruby/ruby@98006cea4fd517671dae508fade13203bc18301a
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/depend2
-rw-r--r--ext/psych/extconf.rb5
2 files changed, 6 insertions, 1 deletions
diff --git a/ext/psych/depend b/ext/psych/depend
index 79b6c53..10d643c 100644
--- a/ext/psych/depend
+++ b/ext/psych/depend
@@ -1,3 +1,5 @@
+$(OBJS): $(YAML_H)
+
$(OBJS): $(HDRS) $(ruby_headers) \
$(hdrdir)/ruby/encoding.h \
$(hdrdir)/ruby/oniguruma.h
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 00f9982..a47e1dd 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -32,8 +32,11 @@ if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_li
find_header 'yaml.h'
have_header 'config.h'
+ bundled = true
end
-create_makefile 'psych'
+create_makefile 'psych' do |mk|
+ mk << "YAML_H =#{' yaml/yaml.h' if bundled}\n"
+end
# :startdoc: