1 --- a/tools/env/Makefile
2 +++ b/tools/env/Makefile
4 # with "CC" here for the maximum code reuse of scripts/Makefile.host.
5 override HOSTCC = $(CC)
7 +ifneq ($(TARGET_CFLAGS),)
8 +HOSTCFLAGS = $(TARGET_CFLAGS)
10 +ifneq ($(TARGET_LDFLAGS),)
11 +HOSTLDFLAGS = $(TARGET_LDFLAGS)
14 # Compile for a hosted environment on the target
15 HOST_EXTRACFLAGS = -I$(srctree)/tools \
16 $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \