diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-09-15 15:49:31 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-09-15 15:49:43 +0200 |
commit | 03c7c8c8530cc899bf04d0559d575ba0ea1de19c (patch) | |
tree | e25882b20d0b2ed7fabb68b45e5dada822ed505f /tools | |
parent | 033f02b9b5580e67e2f1b623f62da60d645e7ba2 (diff) | |
download | upstream-03c7c8c8530cc899bf04d0559d575ba0ea1de19c.tar.gz upstream-03c7c8c8530cc899bf04d0559d575ba0ea1de19c.tar.bz2 upstream-03c7c8c8530cc899bf04d0559d575ba0ea1de19c.zip |
tools/e2fsprogs: fix build with clang
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/e2fsprogs/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
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 += \ |