Subject: Re: prevent buildlink wrapper from enclosing rewitten argument in quotes?
To: Johnny Lam <jlam@NetBSD.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-pkg
Date: 03/25/2005 19:53:53
--0iexB5Bk8cF8G6DP
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
>=20
> hmm... I've never thought about doing it that way. I think this can be=
=20
> 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.
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"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.
--0iexB5Bk8cF8G6DP
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQkReQdgoQloHrPnoAQIqrQgAvgP+0vnsvQfgwH9X6HYNeQNwDPATWtsS
ofMTlW8go5CZyam9GRWc0eBuZZ650/vo8gY0iMxG/aB4yhFqKJFJYin33mtrUkNy
WE62jLi+ewZ/CjXRazkZTCU5fOuRqdL2Q68dBfeNL5Nq6tXjtyzKTXc/70GTq50B
TkkTfNrTz2JSxiV8ZudNHUnnC993AxRQGqeSjfFBNi8Rvt+Zd9d3XBUOtOFw8Byw
4FxU3rdvio5pOADIRQxzPmAgrXQ2YPR4mpBAUrgQvXJVD9iHN0CKhNEw6kzU0VPq
+ZLeSNkSyPVAf52GOhgIzSRmiIB4u/fGLIhvz+ZpCe73FYOhWSeqmw==
=nClS
-----END PGP SIGNATURE-----
--0iexB5Bk8cF8G6DP--