require 'mkmf' CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags'] $CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc/ dir_config("gherkin_lexer_ro") have_library("c", "main") create_makefile("gherkin_lexer_ro")