浏览代码

tools/e2fsprogs: fix build with clang

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 7 年之前
父节点
当前提交
03c7c8c853
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 += \