[git commit] buildsys: add cppcheck wrapper script

Mike Frysinger vapier at gentoo.org
Thu Jan 19 03:09:04 UTC 2012


On Wednesday 18 January 2012 18:02:37 Bernhard Reutner-Fischer wrote:
> On Jan 18, 2012 7:17 PM, "Mike Frysinger" wrote:
> > On Wednesday 18 January 2012 13:06:42 Bernhard Reutner-Fischer wrote:
> > > On 18 January 2012 13:19, Mike Frysinger wrote:
> > > > On Wednesday 18 January 2012 02:44:39 Bernhard Reutner-Fischer wrote:
> > > >> --- /dev/null
> > > >> +++ b/extra/scripts/cppcheck.sh
> > > >> @@ -0,0 +1,23 @@
> > > >> +#! /bin/sh
> > > >> +
> > > >> +${REAL_CC-gcc} $*
> > > > 
> > > > $* -> "$@"
> > > > 
> > > > the rest of our build system uses ${CC} rather than ${REAL_CC} ...
> > > 
> > > make REAL_CC=gcc-HEAD CC=/src/uClibc/extra/scripts/cppcheck.sh
> > 
> > gotcha.  when you fix things up, i'd suggest the first line being:
> > : ${REAL_CC:-gcc}
> > 
> > then assuming everywhere else that ${REAL_CC} is set
> 
> Sure -- if ash supports it.

that is POSIX syntax.  the build system requires POSIX, not shells that don't 
support POSIX ...

also, i had a copy & paste typo.  that "-" should be a "=".
	: ${REAL_CC:=gcc}
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120118/e81213f5/attachment.asc>


More information about the uClibc mailing list