[CRIU] [PATCH] make: allow to change a compiler
Andrew Vagin
avagin at parallels.com
Fri Jun 21 03:07:22 EDT 2013
On Fri, Jun 21, 2013 at 01:35:50PM +0400, Andrew Vagin wrote:
> 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.
It doesn't help. Sorry.
>
> 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
> >
> From 04ba6d6fbca36c363b411f68f6625c54ee719802 Mon Sep 17 00:00:00 2001
> From: Andrey Vagin <avagin at openvz.org>
> Date: Fri, 21 Jun 2013 04:59:32 +0400
> 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 | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index e002c11..3888ced 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -27,7 +27,11 @@ 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
> +export CC
> +
> NM := $(CROSS_COMPILE)nm
> SH := bash
> MAKE := make
> --
> 1.8.2.1
>
More information about the CRIU
mailing list