incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [PATCH] RE: Cygwin cannot find -lstd12d
Date Tue, 06 Mar 2007 17:22:37 GMT
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.


Mime
View raw message