1 require 'mkmf' 2 3 if have_header("windows.h") and have_library("kernel32") 4 if Config::CONFIG["CC"] =~ /gcc/ 5 $CFLAGS += "-fno-defer-pop -fno-omit-frame-pointer" 6 end 7 create_makefile("Win32API") 8 end