diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-11 15:46:21 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-11 15:46:21 +0000 |
commit | 5cc2ac98a93c74a75d7fc3a773193d288906cdc4 (patch) | |
tree | 8b7272d9e7f07a06d5d71facf10696a9d8697d08 /lib/mkmf.rb | |
parent | b936115ed6f0f9e2f86a9c000a98abf5552af7e9 (diff) | |
download | ruby-5cc2ac98a93c74a75d7fc3a773193d288906cdc4.tar.gz |
mkmf.rb: set cppflags
* ext/mkmf.rb (configuration): set the default cppflags, which is
referred from the default CPPFLAGS, for extension libraries.
This fixes build failure of ext/zlib on Solaris 10.
[Bug #14746] [ruby-dev:50539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 63cb6182e2..b035670466 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1982,6 +1982,7 @@ cxxflags = #{CONFIG['cxxflags']} optflags = #{CONFIG['optflags']} debugflags = #{CONFIG['debugflags']} warnflags = #{$warnflags} +cppflags = #{CONFIG['cppflags']} CCDLFLAGS = #{$static ? '' : CONFIG['CCDLFLAGS']} CFLAGS = $(CCDLFLAGS) #$CFLAGS $(ARCH_FLAG) INCFLAGS = -I. #$INCFLAGS |