On Mon, Apr 27, 2020 at 09:13:34PM +0200, Sascha Hauer wrote: > The -mno-spe and -mspe=no options are not available on all compilers. > Call cc-option to set them only when they exist. > > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> > --- > arch/ppc/Makefile | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile > index ebf60edede..67b4b930e7 100644 > --- a/arch/ppc/Makefile > +++ b/arch/ppc/Makefile > @@ -4,6 +4,9 @@ CPPFLAGS += -ffixed-r14 -m32 \ > -meabi -D __PPC__ -D CONFIG_PPC \ > -fno-strict-aliasing -mno-spe -mspe=no > > +CPPFLAGS += $(call cc-option,-mno-spe) > +CPPFLAGS += $(call cc-option,-mspe=no) > + Of course the options should be removed two lines further up. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox