tools/e2fsprogs: fix build with clang
authorFelix Fietkau <nbd@nbd.name>
Sat, 15 Sep 2018 13:49:31 +0000 (15:49 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:47:54 +0000 (17:47 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from 03c7c8c8530cc899bf04d0559d575ba0ea1de19c)

tools/e2fsprogs/Makefile

index fec6d834546567212923f64cc44dbef37a366837..f11ce52ca09c73a65574a98653780442dbbcdccb 100644 (file)
@@ -20,6 +20,9 @@ HOST_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/host-build.mk
 
+ifneq ($(shell $(HOSTCC) --version | grep clang),)
+  HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0
+endif
 HOST_CFLAGS += $(FPIC)
 
 HOST_CONFIGURE_ARGS += \