Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
To: gdb-patches@sourceware.org
Subject: [PATCH] fix config.rpath for cygwin/mingw
Date: Wed, 20 Jul 2011 11:02:00 -0000	[thread overview]
Message-ID: <1311145448.7796.40.camel@YAAKOV04> (raw)

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

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



[-- Attachment #2: config-rpath.patch --]
[-- Type: text/x-patch, Size: 479 bytes --]

2011-07-20  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

	* 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

             reply	other threads:[~2011-07-20  7:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 11:02 Yaakov (Cygwin/X) [this message]
2011-07-20 20:29 ` Christopher Faylor
2011-07-20 21:03   ` Yaakov (Cygwin/X)
2011-07-21  7:03     ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1311145448.7796.40.camel@YAAKOV04 \
    --to=yselkowitz@users.sourceforge.net \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox