ext/libgecode3/extconf.rb in dep-selector-libgecode-1.0.1 vs ext/libgecode3/extconf.rb in dep-selector-libgecode-1.0.2
- old
+ new
@@ -45,9 +45,13 @@
def self.setup_env
if windows?
ENV['CC'] = 'gcc'
ENV['CXX'] = 'g++'
+
+ # Optimize for size on Windows
+ ENV['CFLAGS'] = '-Os'
+ 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