diff --git a/ext/vagrant_ssl/extconf.rb b/ext/vagrant_ssl/extconf.rb index 44b307d1b..b551b18ae 100644 --- a/ext/vagrant_ssl/extconf.rb +++ b/ext/vagrant_ssl/extconf.rb @@ -8,4 +8,11 @@ if have_header("openssl/opensslv.h") end append_ldflags(["-lssl"]) create_makefile("vagrant_ssl") +else + # If the header file isn't found, just create a dummy + # Makefile and stub the library to make it a noop + File.open("Makefile", "wb") do |f| + f.write(dummy_makefile(__dir__).join("\n")) + end + FileUtils.touch("vagrant_ssl.so") end