From: Felix Fietkau Date: Sat, 15 Sep 2018 13:49:31 +0000 (+0200) Subject: tools/e2fsprogs: fix build with clang X-Git-Tag: v19.07.0-rc1~2586 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03c7c8c8530cc899bf04d0559d575ba0ea1de19c;p=oweals%2Fopenwrt.git tools/e2fsprogs: fix build with clang Signed-off-by: Felix Fietkau --- diff --git a/tools/e2fsprogs/Makefile b/tools/e2fsprogs/Makefile index fec6d83454..f11ce52ca0 100644 --- a/tools/e2fsprogs/Makefile +++ b/tools/e2fsprogs/Makefile @@ -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 += \