From 98006cea4fd517671dae508fade13203bc18301a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 29 Nov 2019 10:16:33 +0900 Subject: Add dependency on bundled yaml.h when using --- ext/psych/extconf.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext/psych/extconf.rb') diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 00f9982704..a47e1dd518 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: -- cgit v1.2.3