* 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 _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool