ppe42-binutils,ppe42-gcc: Patch, use $(MAKE) and -Wno-error to fix build on modern GCC
Because building a compiler with -Wno-error to avoid erorring out on
undefined behaviour is a good idea.
We build with $(MAKE) so that we get the -j option passed down from
buildroot. this speeds up build by a couple of orders of magnitude
on my build machine.
Fixes: https://github.com/open-power/op-build/issues/803
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
diff --git a/openpower/package/ppe42-binutils/ppe42-binutils.mk b/openpower/package/ppe42-binutils/ppe42-binutils.mk
index 3a9c125..68579d8 100644
--- a/openpower/package/ppe42-binutils/ppe42-binutils.mk
+++ b/openpower/package/ppe42-binutils/ppe42-binutils.mk
@@ -21,8 +21,8 @@
--enable-shared \
--enable-64-bit-bfd \
&& \
- make configure-host && \
- make LDFLAGS=-all-static CFLAGS=-Wno-error=unused-value
+ $(MAKE) configure-host && \
+ $(MAKE) LDFLAGS=-all-static CFLAGS=-Wno-error
endef
define HOST_PPE42_BINUTILS_INSTALL_CMDS