From f74c229c080b54385ffe1dc4aebf082d67f7123b Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 18 Nov 2015 16:48:37 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ configure.in | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index ed17d6c7d4..4d3d4676bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Nov 19 01:48:05 2015 NAKAMURA Usaku + + * configure.in: add -static-libgcc for mingw automatically if available. + Thu Nov 19 00:53:26 2015 NAKAMURA Usaku * 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