X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=SxAqIySdJN0wsGyuq9ywnpW854T/39w+m9hdXDkvxMC JV6Ua7hFo2rEOizzqObBFoEd2N8mcKB2F1/ABSba9rNl7qNDLUdEC32bYq9SHpBP WtSuXats3JjOzgWjFLji3WvH6FWQBaNyoFNad1cpF2DFCqIGI7z0+S3U2RpMfEkw = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=MxW/Bbc9hwJIVpSFaIkBsOPr+Mw=; b=SIAGt3F/q3otc1new UNGtbcQ0uYP7x0PufwND+oro7N04Dv999KTpOQ4UP//WnDsfBgEAQbhV++ofMba8 lwqTAjfPmI8yuDvgriQNw9+ZNCDvUv+igaRe2Y961LZQrO2HPUBx84hkVMRhH9vr eqxkc24H/4dUwD6NdoRBTac75Y= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_BL autolearn=ham version=3.3.1 X-Received: by 10.220.65.1 with SMTP id g1mr2618173vci.63.1366141035577; Tue, 16 Apr 2013 12:37:15 -0700 (PDT) Message-ID: <516DA86B.7010307@users.sourceforge.net> Date: Tue, 16 Apr 2013 14:37:15 -0500 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: expat 2.1.0-1 References: <51671F38 DOT 2080403 AT gmail DOT com> <516D514E DOT 8000908 AT etr-usa DOT com> <516D6BCC DOT 1000106 AT gmail DOT com> In-Reply-To: <516D6BCC.1000106@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-04-16 10:18, Dave Korn wrote: > GDB apparently prefers linking statically to libexpat. Dunno why, Not really, here's the problem: expat, gettext/iconv, and liblzma are detected via AC_LIB_HAVE_LINKFLAGS, which uses config.rpath to create an absolute path to the given library. As I've mentioned on a number of occasions, the old version of that file in the toplevel of the Cygnus trees (binutils/gcc/gdb/insight) requires a patch: --- config.rpath +++ config.rpath @@ -440,3 +440,3 @@ cygwin* | mingw* | pw32*) - shrext=.dll + shrext=.dll.a ;; The reason being that we are looking for *link* libraries here. (FWIW this has already been fixed in the canonical source of this file, but the Cygnus trees are historically slow to update their build infrastructure.) So, on these platforms, it will detect and prefer the static library if present; otherwise, it will revert to using an ordinary -l link flag. This is NOT indicative of a general preference for static linkage. While it would be preferred to get this patch upstreamed, there is a workaround via configure flags: --without-libiconv-prefix --without-libintl-prefix --without-libexpat-prefix --without-liblzma-prefix This will cause the check to use ordinary -l link flags for these libraries. HTH, Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple