e014af57088c27141bc6ec1377759eedd9d1ab34
[openwrt/openwrt.git] / tools / mkimage / patches / 100-freebsd-compat.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -584,7 +584,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