incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: [PATCH] RE: Cygwin cannot find -lstd12d
Date Tue, 06 Mar 2007 17:38:46 GMT
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> Sent: Tuesday, March 06, 2007 7:23 PM
> To: stdcxx-dev@incubator.apache.org
> Subject: Re: [PATCH] RE: Cygwin cannot find -lstd12d
> 
> > +# 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)?

  Yes, using the LDSOFLAGS is more correctly.

  But in this case using both variables have the same effect because the
linker used only when shared library built.

  The corrected patch:

Index: GNUmakefile.lib
===================================================================
--- GNUmakefile.lib	(revision 514746)
+++ GNUmakefile.lib	(working copy)
@@ -39,6 +39,11 @@
 ONE_REPOSITORY = 1
 include ../makefile.common
 
+# generate import library on Cygwin
+#ifneq ($(findstring CYGWIN,$(OSNAME)),)
+  LDSOFLAGS += -Wl,--out-implib,lib$(LIBBASE).a
+#endif
+
 CXXFLAGS    += $(PICFLAGS)
 LDFLAGS     += $(LDSOFLAGS) $(MAPFLAGS) $(MAPFILE)
 

Farid.

Mime
View raw message