From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21081 invoked by alias); 20 Jul 2011 07:04:18 -0000 Received: (qmail 21069 invoked by uid 22791); 20 Jul 2011 07:04:17 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gy0-f169.google.com (HELO mail-gy0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 07:04:00 +0000 Received: by gyg13 with SMTP id 13so2392625gyg.0 for ; Wed, 20 Jul 2011 00:04:00 -0700 (PDT) Received: by 10.236.181.169 with SMTP id l29mr10793008yhm.447.1311145439951; Wed, 20 Jul 2011 00:03:59 -0700 (PDT) Received: from [127.0.0.1] (S0106000cf16f58b1.wp.shawcable.net [174.5.115.130]) by mx.google.com with ESMTPS id f4sm3843964yhn.27.2011.07.20.00.03.58 (version=SSLv3 cipher=OTHER); Wed, 20 Jul 2011 00:03:59 -0700 (PDT) Subject: [PATCH] fix config.rpath for cygwin/mingw From: "Yaakov (Cygwin/X)" To: gdb-patches@sourceware.org Date: Wed, 20 Jul 2011 11:02:00 -0000 Content-Type: multipart/mixed; boundary="=-qpT76fcwOvZQPKsH7oIT" Message-ID: <1311145448.7796.40.camel@YAAKOV04> Mime-Version: 1.0 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00513.txt.bz2 --=-qpT76fcwOvZQPKsH7oIT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 733 The gettext macros use config.rpath to determine the link library name of libiconv and libintl (on non-glibc platforms); the import library suffix is of importance, not the runtime library suffix. On PE platforms, these differ, and by using the latter in config.rpath, the gettext macros think shared import libraries aren't available, and forces linking with the static library instead. (FWIW, gettext itself has already been fixed in this regard, but updating to the latest version of those files is much more invasive.) The attached patch fixes linking with the shared import libraries. We have been using this patch for over a year on i686-pc-cygwin hosted toolchains (both native- and cross-target). Yaakov Cygwin Ports --=-qpT76fcwOvZQPKsH7oIT Content-Disposition: attachment; filename="config-rpath.patch" Content-Type: text/x-patch; name="config-rpath.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 479 2011-07-20 Yaakov Selkowitz * config.rpath [cygwin|mingw*|pw32] (shrext): Change to .dll.a, to match the import library suffix. Index: config.rpath =================================================================== --- config.rpath (revision 176494) +++ config.rpath (working copy) @@ -438,7 +438,7 @@ bsdi4*) ;; cygwin* | mingw* | pw32*) - shrext=.dll + shrext=.dll.a ;; darwin* | rhapsody*) shrext=.dylib --=-qpT76fcwOvZQPKsH7oIT--