diff --git a/ext/curses/extconf.rb b/ext/curses/extconf.rb index 5d94f781..2e1a6ebc 100644 --- a/ext/curses/extconf.rb +++ b/ext/curses/extconf.rb @@ -67,11 +67,8 @@ def exec_command(cmd) FileUtils.cp("pdcurses.lib", pdcurses_dir) $pdcurses_dll_default = true else - if $x64 - exec_command "make -f Makefile.mng clean all _w64=1 WIDE=Y DLL=N" - else - exec_command "make -f Makefile.mng clean all WIDE=Y DLL=N" - end + w64 = $x64 ? "_w64=1" : "" + exec_command "make -f Makefile.mng clean all #{w64} WIDE=Y DLL=N CC=\"gcc -std=gnu17\"" FileUtils.cp("pdcurses.a", File.expand_path("libpdcurses.a", pdcurses_dir)) end ensure