libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted shared runtime libraries getting added


From: Ralf Wildenhues
Subject: Re: Unwanted shared runtime libraries getting added
Date: Sat, 16 Oct 2010 10:32:13 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

* Ethan Mallove wrote on Fri, Oct 15, 2010 at 08:59:38PM CEST:
> On Mon, Oct/11/2010 09:01:56PM, Ralf Wildenhues wrote:
[...]
> > 
> > This doesn't have the libraries you don't want, AFAICS.  So a workaround
> > (using internal details, but fairly safe) would be to use
> >   libmpi_cxx_la_LIBTOOLFLAGS = --tag=CC
> > 
> > Note however that you get to keep the pieces when this breaks.
> 
> I end up getting *both* --tag=CXX and ---tag=CC:
> 
> /bin/sh ../../../libtool  --tag=CXX --tag=CC  --mode=link icpc  -O3 -DNDEBUG 
> -Wall -static-intel -m32 -finline-functions -fexceptions -pthread 
> -version-info 0:0:0 -export-dynamic  -fexceptions  -o libmpi_cxx.la -rpath 
> /opt/SUNWhpc/HPC9.0/intel/lib libmpi_cxx_la-mpicxx.lo 
> libmpi_cxx_la-intercepts.lo libmpi_cxx_la-comm.lo libmpi_cxx_la-datatype.lo 
> libmpi_cxx_la-win.lo libmpi_cxx_la-file.lo ../../../ompi/libmpi.la -lnsl  
> -lutil 

OK, sorry, the following should work instead:

libmpi_cxx_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
        $(CXXFLAGS) $(libmpi_cxx_la_LDFLAGS) $(LDFLAGS) -o $@

If you don't set libmpi_cxx_la_LDFLAGS yourself, you should replace that
with AM_LDFLAGS in the above string.

Cheers,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]