On Fri, Oct/08/2010 07:14:18PM, Ralf Wildenhues wrote: > Hello Ethan, > > * Ethan Mallove wrote on Fri, Oct 08, 2010 at 02:42:53PM CEST: > > I'm trying to create a library which has no shared library > > dependencies using the Intel compilers, but it appears Libtool might > > be automatically adding in some -lfoo flags that are forcing the > > issue. How can I tell Libtool to not add the -lfoo flags? > > Which libraries are added?
libimf and friends. > > Which of those would you like to avoid? If possible, all of the Intel runtime libraries (e.g., libimf, libsvml, libintlc). > Please show a 'libtool --mode=link' command line and its output. /bin/sh ../../../libtool --tag=CXX --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/instrument/lib mpicxx.lo intercepts.lo comm.lo datatype.lo win.lo file.lo ../../../ompi/libmpi.la -lnsl -lutil libtool: link: icpc -shared .libs/mpicxx.o .libs/intercepts.o .libs/comm.o .libs/datatype.o .libs/win.o .libs/file.o -Wl,-rpath -Wl,$ORIGIN -Wl,-rpath -Wl,$ORIGIN/.. -Wl,-rpath -Wl,$ORIGIN/../lib -Wl,-rpath -Wl,$ORIGIN -Wl,-rpath -Wl,$ORIGIN/.. -Wl,-rpath -Wl,$ORIGIN/../lib ../../../ompi/.libs/libmpi.so -lnsl -lutil -L/ws/ompi-tools/intel/Compiler/11.0/084/lib/ia32 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/32 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/ -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../ -L/lib/ -L/usr/lib -limf -lsvml -lm -lipgo -ldecimal -lstdc++ -lpthread -lirc -lgcc_s -lirc_s -ldl -lc -m32 -pthread -pthread -Wl,-soname -Wl,libmpi_cxx.so.0 -o .libs/libmpi_cxx.so.0.0.0 > > libtool normally adds all direct and indirect library dependencies > (the latter only when link_all_deplibs is true, which it currently is > everywhere except in the Debian-modified libtool), as well as compiler > support libraries. The indirect deplibs is an obvious issue for at > least distributors, the rest is usually the right thing to do. > So if I set "link_all_deplibs" to "false", will that turn off the "-limf -lsvml ..." we're seeing in the link line? -Ethan > Cheers, > Ralf _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool