immortalwrt/package/boot/uboot-envtools/patches/001-compile.patch

17 lines
457 B
Diff
Raw Normal View History

2017-09-06 19:19:45 +08:00
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
2020-02-06 12:18:58 +08:00
@@ -8,6 +8,13 @@
2017-09-06 19:19:45 +08:00
# with "CC" here for the maximum code reuse of scripts/Makefile.host.
override HOSTCC = $(CC)
2017-09-06 19:19:45 +08:00
+ifneq ($(TARGET_CFLAGS),)
+HOSTCFLAGS = $(TARGET_CFLAGS)
+endif
2019-12-11 11:48:48 +08:00
+ifneq ($(TARGET_LDFLAGS),)
+HOSTLDFLAGS = $(TARGET_LDFLAGS)
+endif
2017-09-06 19:19:45 +08:00
+
# Compile for a hosted environment on the target
2020-02-06 12:18:58 +08:00
HOST_EXTRACFLAGS = -I$(srctree)/tools \
$(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \