fixing cflags

This commit is contained in:
humanzz 2008-09-14 15:00:29 +02:00
parent c186184809
commit c17d4b6a7a
1 changed files with 2 additions and 1 deletions

View File

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