X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fboot%2Fuboot-envtools%2Fpatches%2F001-compile.patch;fp=package%2Fboot%2Fuboot-envtools%2Fpatches%2F001-compile.patch;h=5e038ce729c46f313cb11da012abfb79546b0858;hp=0000000000000000000000000000000000000000;hb=b368f6cbd5890dea2aeffa16bf4fb30ebf0afb6f;hpb=13b98a6d27a4a78d3449f7de2847927161061ae1 diff --git a/package/boot/uboot-envtools/patches/001-compile.patch b/package/boot/uboot-envtools/patches/001-compile.patch new file mode 100644 index 0000000000..5e038ce729 --- /dev/null +++ b/package/boot/uboot-envtools/patches/001-compile.patch @@ -0,0 +1,13 @@ +--- a/tools/env/Makefile ++++ b/tools/env/Makefile +@@ -10,6 +10,10 @@ + # with "CC" here for the maximum code reuse of scripts/Makefile.host. + HOSTCC = $(CC) + ++ifneq ($(TARGET_CFLAGS),) ++HOSTCFLAGS = $(TARGET_CFLAGS) ++endif ++ + # Compile for a hosted environment on the target + HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \ + -idirafter $(srctree)/tools/env \