[CRIU] [PATCH] make: allow to change a compiler
Andrew Vagin
avagin at parallels.com
Fri Jun 21 02:35:50 EDT 2013
On Fri, Jun 21, 2013 at 06:05:53PM +0900, Chanho Park wrote:
> > -----Original Message-----
> > From: Andrey Wagin [mailto:avagin at gmail.com] On Behalf Of Andrey Vagin
> > Sent: Friday, June 21, 2013 10:03 AM
> > To: criu at openvz.org
> > Cc: Pavel Emelyanov; Andrey Vagin; Cyrill Gorcunov; Chanho Park
> > Subject: [PATCH] make: allow to change a compiler
> >
> > clang-analyzer sets the environment variable CC scan-build -plist-html -
> > -use-analyzer /usr/bin/clang make
> >
> > Cc: Cyrill Gorcunov <gorcunov at openvz.org>
> > Cc: Chanho Park <chanho61.park at samsung.com>
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> > ---
> > Makefile | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/Makefile b/Makefile
> > index e002c11..009ae77 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -27,7 +27,10 @@ FIND := find
> > CSCOPE := cscope
> > RM := rm -f
> > LD := $(CROSS_COMPILE)ld
> > -CC := $(CROSS_COMPILE)gcc
> > +
> > +# clang-analyzer sets the environment variable CC
> > +CC ?= $(CROSS_COMPILE)gcc
Try to add here "export CC", it should help you.
Thanks.
> > +
>
> As I told previous patch, I can't find a way to use ? operator and
> $(CROSS_COMPILE) directive concurrently.
> So If your patch is applied, I can't use CROSS_COMPILE directive anymore.
>
> Best Regards,
> Chanho Park
>
More information about the CRIU
mailing list