diff options
Diffstat (limited to 'ext/fiddle/extconf.rb')
-rw-r--r-- | ext/fiddle/extconf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 6da557bc79..f5c27cc934 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -127,8 +127,9 @@ if libffi $LOCAL_LIBS.prepend("#{libffi.a} ").strip! end create_makefile 'fiddle' do |conf| - next conf unless libffi - if $mswin + if !libffi + next conf << "LIBFFI_CLEAN = none\n" + elsif $mswin submake = "make -C $(LIBFFI_DIR)\n" elsif $gnumake submake = "$(MAKE) -C $(LIBFFI_DIR)\n" @@ -148,6 +149,7 @@ create_makefile 'fiddle' do |conf| LIBFFI_LDFLAGS = #{libffi.ldflags} FFI_H = $(LIBFFI_DIR)/include/ffi.h SUBMAKE_LIBFFI = #{submake} + LIBFFI_CLEAN = libffi MK end |