diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 63eacf2c81..36e9bd56cb 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -1,11 +1,19 @@ # frozen_string_literal: true -require 'mkmf' + +require "rbconfig" unless RUBY_ENGINE == "ruby" - File.write('Makefile', dummy_makefile("").join) + File.write('Makefile', <<-MAKEFILE) +all install clean: + #{RbConfig::CONFIG["NULLCMD"]} + +.PHONY: all install clean + MAKEFILE return end +require 'mkmf' + # :stopdoc: def gcc?