diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-02 15:04:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-02 15:04:23 +0000 |
commit | 773248551b8cb46f281d5b6bb4f61477ce17d55d (patch) | |
tree | 4d1f2bed6e43a51d30d8e255608e789bcf47bb15 /lib | |
parent | 248aa54c274f72801da04c86f4c6653733e2c1e7 (diff) |
mswin: static-linked-ext
* enc/depend (CPPFLAGS), lib/mkmf.rb (MakeMakefile#create_makefile):
define RUBY_EXPORT for static-linked-ext mswin. [Bug #7960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index b745b79823..dcf1de4242 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -2106,6 +2106,10 @@ RULES $distcleandirs.concat($INSTALLFILES.collect {|files, dir| dir}) end + if $extmk and $static + $defs << "-DRUBY_EXPORT=1" + end + if $extmk and not $extconf_h create_header end |