fixing cflags

This commit is contained in:
humanzz 2008-09-14 15:00:29 +02:00
parent c186184809
commit c17d4b6a7a

View File

@ -1,5 +1,6 @@
require 'mkmf' require 'mkmf'
if /mswin32/ =~ RUBY_PLATFORM if /mswin32/ =~ RUBY_PLATFORM
inc, lib = dir_config('mysql') inc, lib = dir_config('mysql')
exit 1 unless have_library("libmysql") exit 1 unless have_library("libmysql")
@ -32,7 +33,7 @@ else
end end
if have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h') if have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h')
cflags << "-DHAVE_TBR" $CPPFLAGS << " -DHAVE_TBR"
end end
# make mysql constant # make mysql constant