Add dependency on bundled yaml.h when using

This commit is contained in:
Nobuyoshi Nakada 2019-11-29 10:16:33 +09:00
parent 6b460a7948
commit 98006cea4f
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,5 @@
$(OBJS): $(YAML_H)
# AUTOGENERATED DEPENDENCIES START
psych.o: $(RUBY_EXTCONF_H)
psych.o: $(arch_hdrdir)/ruby/config.h

View File

@ -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: