diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-18 16:48:37 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-18 16:48:37 +0000 |
commit | f74c229c080b54385ffe1dc4aebf082d67f7123b (patch) | |
tree | 2eee8e119f127460eeb0919081d35d72c1a322d7 | |
parent | 3c0759555f81a7b34bda3bd0b84d7e56903ed81b (diff) | |
download | ruby-f74c229c080b54385ffe1dc4aebf082d67f7123b.tar.gz |
* configure.in: add -static-libgcc for mingw automatically if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Nov 19 01:48:05 2015 NAKAMURA Usaku <usa@ruby-lang.org> + + * configure.in: add -static-libgcc for mingw automatically if available. + Thu Nov 19 00:53:26 2015 NAKAMURA Usaku <usa@ruby-lang.org> * ext/extmk.rb (--extflags): new option to pass EXTLDFLAGS to children, diff --git a/configure.in b/configure.in index ad417af99f..d3d82310ad 100644 --- a/configure.in +++ b/configure.in @@ -944,6 +944,10 @@ if test "$GCC" = yes; then AS_CASE(["$target_os"], [mingw*], [ RUBY_TRY_CFLAGS(-fno-omit-frame-pointer, [optflags="${optflags+$optflags }-fno-omit-frame-pointer"]) + RUBY_TRY_CFLAGS(-static-libgcc, [static_libgcc=yes], [static_libgcc=no]) + if test "$static_libgcc" = yes; then + RUBY_APPEND_OPTION(EXTLDFLAGS, -static-libgcc) + fi ]) # disable fast-math |