tools/e2fsprogs: fix build with clang
authorFelix Fietkau <nbd@nbd.name>
Sat, 15 Sep 2018 13:49:31 +0000 (15:49 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 15 Sep 2018 13:49:43 +0000 (15:49 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/e2fsprogs/Makefile

index fec6d83..f11ce52 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 += \