libtool-patches
[Top][All Lists]
Advanced

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

Re: SCO/bugfix patch 3 of 10: AC_LIBTOOL_DLOPEN_SELF


From: Ralf Wildenhues
Subject: Re: SCO/bugfix patch 3 of 10: AC_LIBTOOL_DLOPEN_SELF
Date: Mon, 31 Oct 2005 17:42:34 +0100
User-agent: Mutt/1.5.11

* Kean Johnston wrote on Mon, Oct 31, 2005 at 05:20:20PM CET:
> 
> For the sake of legibility, how about:
> sflag=`wl=$lt_prog_compiler_wl eval echo " $lt_prog_compiler_static "`
> LDFLAGS="$LDFLAGS $sflag"
> 
> This way you avoid the escaping of the quotes and the not-so-obvious
> concatenation of strings in the LDFLAGS assignment.

You have to escape the quotes.  Your example above won't work always:
lt_prog_compiler_static may begin with `-n':
  lt_prog_compiler_static=-non-shared
`echo' may interpret `-n'.  Boom.  Prepending `echo's first argument
with a space fixes that.

> 'sflag' intentionally kept to a short name so that Thunderbird
> doesnt wrap the lines above.

Yeah, I guess a helper variable would be ok.

Cheers,
Ralf




reply via email to

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