[Top][All Lists]

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

Re: libtool doesn't process LD_FLAGS arguments properly

From: Gary V. Vaughan
Subject: Re: libtool doesn't process LD_FLAGS arguments properly
Date: Tue, 23 Nov 2010 19:43:47 +0700

[Please don't top post on technical lists]

Hi Roman,

On 23 Nov 2010, at 19:13, Gavrilov, Roman wrote:
> -----Original Message-----
> From: Gary V. Vaughan [mailto:address@hidden 
> Sent: Tuesday, November 23, 2010 1:18 PM
> To: Gavrilov, Roman
> Cc: address@hidden
> Subject: Re: libtool doesn't process LD_FLAGS arguments properly
> On 23 Nov 2010, at 18:02, Gavrilov, Roman wrote:
> I'm using libtool to build xerces3 & Xquilla both use libtool to build
> the library.
>> It seems that libtool doesn't process arguments properly especially
> those that contain space in the arguments for example
> -Wl,rpath-link{SPACE}PATH.
> Try:
>  libtool ... -Wl,-rpath-link -Wl,PATH
> or:
>  libtool ... -Xlinker -rpath-link -Xlinker PATH
> If PATH also has spaces in it, libtool will probably get confused (shell
> scripts are extremely difficult to get right with embedded spaces).  You
> can work around that by creating a soft-link to a new path with no
> spaces in it, and then pass *that* path in to libtool.
> Cheers,
> -- 
> Gary V. Vaughan (address@hidden)
> Hi Gary,
> Libtool ... -Wl,-rpath-link -Wl,PATH does work, now libtool passes it to
> linker as is, but I don't think compiler would understand those
> arguments as it expects the PATH to follow -Wl,-rpath-link.

By the time the driver passes arguments to the linker, it will see, e.g.:

  /usr/bin/ld ... -rpath-link PATH

which is how this is supposed to work.

Gary V. Vaughan (address@hidden)

Attachment: PGP.sig
Description: This is a digitally signed message part

reply via email to

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