[Top][All Lists]

[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: Fri, 10 Dec 2010 19:45:32 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

* Ethan Mallove wrote on Fri, Dec 10, 2010 at 07:41:20PM CET:
> On Thu, Oct/21/2010 06:13:03AM, Ralf Wildenhues wrote:
> > Pass -Wc,-static-intel instead.
> This works like a charm for shared libraries, but for standalone
> executables I get an error like this:
>   ...
>   icc: command line warning #10156: ignoring option '-W'; no argument required
>   /bin/sh ../../../libtool  --tag=CC   --mode=link icc  -Wc,-static-intel -g 
> -finline-functions -fno-strict-aliasing -restrict -pthread 
> -fvisibility=hidden  -export-dynamic   -o orte-iof orte-iof.o 
> ../../../orte/ -lnsl  -lutil
>   libtool: link: icc -Wl,-static-intel -g -finline-functions 
> -fno-strict-aliasing -restrict -pthread -fvisibility=hidden -o .libs/orte-iof 
> orte-iof.o -Wl,--export-dynamic  ../../../orte/.libs/ -ldl 
> -lnsl -lutil -pthread -Wl,-rpath -Wl,$ORIGIN -Wl,-rpath -Wl,$ORIGIN/.. 
> -Wl,-rpath -Wl,$ORIGIN/../lib
>   ipo: warning #11015: Warning unknown option -static-intel
>   ld: unrecognized -a option `tic-intel'
> Do you know of a way to get this working in both cases: shared libs
> and standalone executable?

Yes.  Use Libtool 2.2.8 or newer.  Quoting from the NEWS file:

  - Fix ancient bug where "-Wc," was turned into "$wl" (typically "-Wl,")
    when using the compiler driver to link programs. Now "-Wc," is stripped
    just as it is when linking libraries through the compiler driver.


reply via email to

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