delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/12/17:18:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48CADC55.90003@users.sourceforge.net>
Date: Fri, 12 Sep 2008 16:17:09 -0500
From: "Yaakov (Cygwin Ports)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] New experimental package: gcc4-4.3.0-1
References: <announce.001001c91336$91e70d10$9601a8c0 AT CAM DOT ARTIMI DOT COM> <48C8FE4D DOT 1090103 AT users DOT sourceforge DOT net> <013401c9140b$22b569c0$9601a8c0 AT CAM DOT ARTIMI DOT COM> <48CA2107 DOT FE8D0CB2 AT dessent DOT net> <01cb01c914db$53d34d80$9601a8c0 AT CAM DOT ARTIMI DOT COM>
In-Reply-To: <01cb01c914db$53d34d80$9601a8c0@CAM.ARTIMI.COM>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dave Korn wrote:
>   OK.  Suits me.

While you're at it, I would override LIBINTL and LIBICONV with their
dynamic counterparts.

>   The problem is the major difference between ELF DSOs and PE DLLS: DLLs have
> to be fully resolved at link-time, not load-time.  So, when you're building
> libstdc++ all those internal references to operator new have to be resolved
> somewhere, and as the weakref is the only definition available that's where
> they get linked to.  Permanently and forever.
> 
>   If they were instead resolved to some kind of thunk that could do a lookup
> at runtime for non-weak versions of the same symbol, we'd be golden.  Well,
> we'd need to make sure the non-weak versions were all declspecced dllexport
> somehow, but that would do it for us.

FWIW, this doesn't just affect C++; linking XWin against a dynamic
libXfont has the same problem, causing the former not to work, and hence
requires a static link.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkjK3FQACgkQpiWmPGlmQSM+KwCgutTD0WG53ZeGxT+AN8YPXtsm
tOwAnixQMnvtOpauNiFuFe7F6YrMQ38p
=tSNx
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019