From stdcxx-dev-return-2747-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Tue Mar 06 17:22:59 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 17482 invoked from network); 6 Mar 2007 17:22:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 17:22:58 -0000 Received: (qmail 75910 invoked by uid 500); 6 Mar 2007 17:23:07 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 75903 invoked by uid 500); 6 Mar 2007 17:23:07 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 75892 invoked by uid 99); 6 Mar 2007 17:23:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 09:23:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 09:22:51 -0800 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l26HMTGA009233 for ; Tue, 6 Mar 2007 17:22:29 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6 Mar 2007 10:22:16 -0700 Message-ID: <45EDA35D.9080104@roguewave.com> Date: Tue, 06 Mar 2007 10:22:37 -0700 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] RE: Cygwin cannot find -lstd12d References: <7BDB2168BEAEF14C98F1901FD2DE64384E1C83@epmsa009.minsk.epam.com> In-Reply-To: <7BDB2168BEAEF14C98F1901FD2DE64384E1C83@epmsa009.minsk.epam.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Mar 2007 17:22:16.0657 (UTC) FILETIME=[FCE09410:01C76013] X-Virus-Checked: Checked by ClamAV on apache.org Farid Zaripov wrote: >> -----Original Message----- >> From: Martin Sebor [mailto:sebor@roguewave.com] >> Sent: Tuesday, March 06, 2007 5:55 PM >> To: stdcxx-dev@incubator.apache.org >> Subject: Re: Cygwin cannot find -lstd12d >> >>> There exist libstd12d.so which is DLL file, but linker >> requires the >>> libstd12d.a file (import library). >> So how do we create it and how is it different from an >> ordinary archive library? > > We need to use an additional linker parameter --out-implib. I see. > The proposed patch: > > Index: config/GNUmakefile.lib > =================================================================== > --- config/GNUmakefile.lib (revision 514746) > +++ config/GNUmakefile.lib (working copy) > @@ -42,6 +42,11 @@ > CXXFLAGS += $(PICFLAGS) > LDFLAGS += $(LDSOFLAGS) $(MAPFLAGS) $(MAPFILE) > > +# generate import library on Cygwin > +#ifneq ($(findstring CYGWIN,$(OSNAME)),) > + LDFLAGS += -Wl,--out-implib,lib$(LIBBASE).a > +#endif Should this be LDFLAGS (linker flags used when linking programs with the library) or LDSOFLAGS (linker flags used only when linking a shared library)? Martin > + > # OBJS += $(shell [ -d ./cxx_repository/ ] && echo > ./cxx_repository/*.o) > > # For AIX 5.1 xlC 5.0.2.0 > > Farid.