[git commit] buildsys: add cppcheck wrapper script

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Jan 18 23:02:37 UTC 2012


On Jan 18, 2012 7:17 PM, "Mike Frysinger" <vapier at gentoo.org> wrote:
>
> On Wednesday 18 January 2012 13:06:42 Bernhard Reutner-Fischer wrote:
> > On 18 January 2012 13:19, Mike Frysinger <vapier at gentoo.org> 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.


More information about the uClibc mailing list