stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject [PATCH] RE: Cygwin cannot find -lstd12d
Date Tue, 06 Mar 2007 17:15:03 GMT
> -----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.
  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
+
 # OBJS += $(shell [ -d ./cxx_repository/ ] && echo
./cxx_repository/*.o)
 
 # For AIX 5.1 xlC 5.0.2.0

Farid.

Mime
View raw message