Skip to content

Commit 399fa5c

Browse files
committed
Don't use mkmf to generate dummy Makefile
GitHub: fix GH-153 mkmf requires fileutils. JRuby doesn't like it.
1 parent 1f818e4 commit 399fa5c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ext/fiddle/extconf.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# frozen_string_literal: true
2-
require 'mkmf'
32

43
unless RUBY_ENGINE == "ruby"
5-
File.write('Makefile', dummy_makefile("").join)
4+
File.write('Makefile', <<-MAKEFILE)
5+
all install clean:
6+
#{CONFIG["NULLCMD"]}
7+
8+
.PHONY: all install clean
9+
MAKEFILE
610
return
711
end
812

13+
require 'mkmf'
14+
915
# :stopdoc:
1016

1117
def gcc?

0 commit comments

Comments
 (0)