1567285714d3bff0c5b68b6de88e656342d59a2d
[openwrt/openwrt.git] / tools / mkimage / patches / 100-freebsd-compat.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -634,7 +634,10 @@ UBOOTINCLUDE := \
4 -I$(srctree)/arch/$(ARCH)/include \
5 -include $(srctree)/include/linux/kconfig.h
6
7 -NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
8 +ifneq ($(shell uname),FreeBSD)
9 + NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
10 +endif
11 +
12 CHECKFLAGS += $(NOSTDINC_FLAGS)
13
14 # FIX ME