diff options
Diffstat (limited to 'ext/zlib/extconf.rb')
-rw-r--r-- | ext/zlib/extconf.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb index 6b9bb05742..b4e76af3c6 100644 --- a/ext/zlib/extconf.rb +++ b/ext/zlib/extconf.rb @@ -54,12 +54,7 @@ if %w'z libz zlib zdll'.find {|z| have_library(z, 'deflateReset')} and message "#{OS_NAMES[os_code]}\n" defines << "OS_CODE=#{os_code}" - defines = defines.collect{|d|' -D'+d}.join - if $CPPFLAGS then - $CPPFLAGS += defines - else - $CFLAGS += defines - end + $defs.concat(defines.collect{|d|' -D'+d}) create_makefile('zlib') |