2
0

001-compile.patch 395 B

12345678910111213
  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. +ifneq ($(TARGET_CFLAGS),)
  7. +HOSTCFLAGS = $(TARGET_CFLAGS)
  8. +endif
  9. +
  10. # Compile for a hosted environment on the target
  11. HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
  12. -idirafter $(srctree)/tools/env \