rpcd: iwinfo plugin fixes
[openwrt.git] / package / boot / uboot-envtools / patches / 001-compile.patch
1 --- a/tools/env/Makefile
2 +++ b/tools/env/Makefile
3 @@ -10,6 +10,10 @@
4  # with "CC" here for the maximum code reuse of scripts/Makefile.host.
5  HOSTCC = $(CC)
6  
7 +ifneq ($(TARGET_CFLAGS),)
8 +HOSTCFLAGS = $(TARGET_CFLAGS)
9 +endif
10 +
11  # Compile for a hosted environment on the target
12  HOST_EXTRACFLAGS  = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
13                 -idirafter $(srctree)/tools/env \