Juergen Vigna wrote:
> 
> On 23-Jul-2001 Jean-Marc Lasgouttes wrote:
> >>>>>> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes:
> >
> > Michael> Hi, when running Purify, it complains that it has to link a
> > Michael> directory. Could you please tell me what option
> > Michael> "-Wl,/usr/openwin/lib" means when linking binary file "lyx".
> >
> > I think it means search libraries in /usr/openwin/lib (probably like
> > -L).
> 
> As much as I know of this stuff it means that at runtime it searches
> there for the dynamic libraries, while -L searches for the libraries
> at linktime there. So normally you need both, -L/usr/openwin/lib for
> linking stage and -Wl,/usr/openwin/lib so that the binary does find
> it when it runs. This is needed when you don't want to add certain lib
> directories to the configuration of you dynamic linker, on linux
> /etc/ld.so.conf)
> 

AFAIK: 

The switch -Wx,z is given to cc to hand the argument z to the
compile stage x. That means for the example above:

Hand "/usr/openwin/lib" to the stage l(linker)
=> a directory name as parameter (as reported by purify)
=> nonsense.

The correct command line option is "-Wl,-L/usr/openwin/lib" or
for runtime search "-Wl,-R/usr/openwin/lib" on solaris.
The gnu linker maybe silently ignores the strange stuff or 
interprets the "-Wl,/usr/openwin/lib" in a non-standard manner.

Stephan

------------------------------------------------
<[EMAIL PROTECTED]> | beusen Solutions GmbH
fon: +49 30 549932-62    | Landsberger Allee 366
fax: +49 30 549932-21    | 12681 Berlin, Germany
------------------------------------------------

Reply via email to