[Top][All Lists]

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

Re: Unwanted shared runtime libraries getting added

From: Ethan Mallove
Subject: Re: Unwanted shared runtime libraries getting added
Date: Fri, 8 Oct 2010 13:26:45 -0400
User-agent: Mutt/1.5.14 (2007-03-31)

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 -rpath 
/opt/SUNWhpc/HPC9.0/intel/instrument/lib mpicxx.lo intercepts.lo comm.lo 
datatype.lo win.lo file.lo ../../../ompi/ -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/ 
-lnsl -lutil -L/ws/ompi-tools/intel/Compiler/11.0/084/lib/ia32 
-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, -o 

> 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?


> Cheers,
> Ralf

reply via email to

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