projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools/e2fsprogs: fix build with clang
[openwrt/staging/wigyori.git]
/
tools
/
e2fsprogs
/
Makefile
diff --git
a/tools/e2fsprogs/Makefile
b/tools/e2fsprogs/Makefile
index fec6d834546567212923f64cc44dbef37a366837..f11ce52ca09c73a65574a98653780442dbbcdccb 100644
(file)
--- 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 += \