ext/libgecode3/extconf.rb in dep-selector-libgecode-1.1.0 vs ext/libgecode3/extconf.rb in dep-selector-libgecode-1.2.0

- old
+ new

@@ -43,18 +43,18 @@ args end def self.setup_env if windows? - ENV['CC'] = 'gcc' - ENV['CXX'] = 'g++' + ENV['CC'] ||= 'gcc' + ENV['CXX'] ||= 'g++' # Ruby DevKit ships with BSD Tar ENV['PROG_TAR'] ||= 'bsdtar' # Optimize for size on Windows - ENV['CFLAGS'] = '-Os' - ENV['CXXFLAGS'] = '-Os' + ENV['CFLAGS'] = "#{ENV['CFLAGS']} -Os" + ENV['CXXFLAGS'] = "#{ENV['CXXFLAGS']} -Os" # Older versions of CentOS and RHEL need to use this elsif File.exist?('/usr/bin/gcc44') ENV['CC'] = 'gcc44' ENV['CXX'] = 'g++44' end