libtool
[Top][All Lists]
Advanced

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

Re: libtool and quote stripping


From: Gary V . Vaughan
Subject: Re: libtool and quote stripping
Date: Sun, 8 Apr 2001 01:51:05 +0100

On Friday 06 April 2001  5:33 pm, s_a_white wrote:
> Hi,

Hello.

> I found another problem the other day.  I created a line with a define on
> it and found libtool (1.3c) removed my quotes which were needed:
>
> c++ -DMY_STRING="FOO" ...

Don't forget that the host shell expands one set of quotes, so the 
application (c++ in this case) will only see -DMY_STRING=FOO.

> now on the libtool (second) pass I get:
>
> libtool ... c++ -DMY_STRING=FOO ...

You should escape the quotes to make sure that your shell doesn't strip them 
before libtool can see the resulting line:

  libtool ... c++ -DMY_STRING=\"FOO\" ...

Take a look at libtool/tests/quote.test to see what I mean.

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

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