From patchwork Mon Sep 19 22:43:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JonY X-Patchwork-Id: 115398 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6019CB6FA3 for ; Tue, 20 Sep 2011 08:43:46 +1000 (EST) Received: (qmail 25683 invoked by alias); 19 Sep 2011 22:43:43 -0000 Received: (qmail 25662 invoked by uid 22791); 19 Sep 2011 22:43:42 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Sep 2011 22:43:28 +0000 Received: by yxj17 with SMTP id 17so4872877yxj.20 for ; Mon, 19 Sep 2011 15:43:27 -0700 (PDT) Received: by 10.68.52.164 with SMTP id u4mr4822881pbo.312.1316472207492; Mon, 19 Sep 2011 15:43:27 -0700 (PDT) Received: from [175.142.11.162] ([175.142.11.162]) by mx.google.com with ESMTPS id q10sm33872989pbn.9.2011.09.19.15.43.25 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Sep 2011 15:43:26 -0700 (PDT) Message-ID: <4E77C57F.40808@users.sourceforge.net> Date: Tue, 20 Sep 2011 06:43:11 +0800 From: JonY User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Gcc Patch List Subject: [patch] --enable-dynamic-string default for mingw-w64 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, Its been used in the automated toolchain builds for sometime, seems like a good idea to enable it by default. It can be easily changed to match for all mingw as well if needed. OK for trunk? Index: libstdc++-v3/configure.ac =================================================================== --- libstdc++-v3/configure.ac (revision 178946) +++ libstdc++-v3/configure.ac (working copy) @@ -132,7 +132,15 @@ GLIBCXX_ENABLE_DEBUG([no]) GLIBCXX_ENABLE_PARALLEL([yes]) GLIBCXX_ENABLE_CXX_FLAGS -GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING([no]) +case "$host" in + # Enable fully ynamic strings on mingw-w64 by default + i?86-w64-mingw* | x86_64-w64-mingw*) + GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING([yes]) + ;; + *) + GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING([no]) + ;; +esac GLIBCXX_ENABLE_EXTERN_TEMPLATE([yes]) # Checks for operating systems support that doesn't require linking.