Browse Source

tools/e2fsprogs: fix build with clang

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 7 năm trước cách đây
mục cha
commit
03c7c8c853
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      tools/e2fsprogs/Makefile

+ 3 - 0
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 += \