[apparmor] [PATCH 3/9] Use CXXFLAGS instead of CFLAGS

Christian Boltz apparmor at cboltz.de
Sat Oct 3 20:39:48 UTC 2015


Am Montag, 14. September 2015 schrieb John Johansen:
> Now that we build using the C++ compiler use CXXFLAGS
> Signed-off-by: John Johansen <john.johansen at canonical.com>

This patch is a bit beyond my compiler knownledge, but since most of the 
changes are about renaming CFLAGS to CXXFLAGS and similar stuff, I'll 
risk doing the review nevertheless. That's still better than a timeout ;-)

The most interesting (aka non-obvious on the first view) change was:

> diff --git a/parser/libapparmor_re/Makefile
> b/parser/libapparmor_re/Makefile index c8d9db6..1c341a5 100644
> --- a/parser/libapparmor_re/Makefile
> +++ b/parser/libapparmor_re/Makefile
> -CFLAGS ?= -g -Wall -O2 ${EXTRA_CFLAGS} -std=gnu++0x
> +CXXFLAGS ?= -g -Wall -O2 ${EXTRA_CXXFLAGS} -std=gnu++0x

You dropped ${INCLUDE_APPARMOR} from CXXFLAGS here...

> @@ -28,6 +27,7 @@ libapparmor_re.a: $(OBJS)
>  %.o: %.cc $(HDRS)

... and add it to the compiler call here, so in summary the patch looks 
fine :-)

Acked-by: Christian Boltz <apparmor at cboltz.de>


Christian Boltz
> warum bekomme ich eigentlich nie ne Antwort wenn ich in der liste
> was reinschreibe. Mögt ihr mich nicht??
nur leicht gesalzen...
[> Thomas Leist und Thilo Alfred Bätzig in suse-linux]

More information about the AppArmor mailing list