Subject: Re: prevent buildlink wrapper from enclosing rewitten argument in quotes?
To: Johnny Lam <>
From: Quentin Garnier <>
List: tech-pkg
Date: 03/25/2005 19:53:53
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 25, 2005 at 01:36:28PM -0500, Johnny Lam wrote:
> Quentin Garnier wrote:
> >On Fri, Mar 25, 2005 at 04:57:30PM +0100, Georg Schwarz wrote:
> >
> >>I've written a buildlink transform script for the IRIX 5.3 cc which,
> >>among others substitutes -B static for -static:
> >>
> >>-static)
> >>       arg=3D-B static
> >>       msg_log $wrapperlog "   (transform-ido-cc) to: $arg"
> >>       addtocache=3Dyes
> >>       ;;
> >>
> >>
> >>This seems to have no effect, since I end up with -static anyway.
> >>When I set
> >>arg=3D-B\ static
> >>this is later on, arrcording to .work.log, passed as "-B static" (i.e.
> >>in quotes), which the compiler does not support.
> >>
> >>Does anyone know how to get around that problem?
> >
> >
> >arg=3D"-B static"
> >split_arg=3Dyes
> hmm... I've never thought about doing it that way.  I think this can be=
> used to simplify some of the existing code.  Thanks for the tip!

Well, I simply read it off transform-aix-cc and transform-xlc-cc.  You
should credit Grant.

Quentin Garnier - -
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.6 (NetBSD)