0001-jlibtool-cross-with-host-CC.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 8a8506320acf3ea18940a6e3a447d7d394a3bd8e Mon Sep 17 00:00:00 2001
  2. From: David Gouarin <david.gouarin@thalesgroup.com>
  3. Date: Mon, 12 Apr 2021 11:05:54 -0500
  4. Subject: [PATCH] jlibtool cross with host CC
  5. jlibtool.c: while cross compiling, use host CC instead of target CC to build jlibtool
  6. Upstream: Not applicable
  7. Signed-off-by: David Gouarin <david.gouarin@thalesgroup.com>
  8. Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
  9. [Fabrice: update for 3.2.3]
  10. SIgned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. ---
  12. scripts/libtool.mk | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/scripts/libtool.mk b/scripts/libtool.mk
  15. index 57915e1053..c28260dd7e 100644
  16. --- a/scripts/libtool.mk
  17. +++ b/scripts/libtool.mk
  18. @@ -43,8 +43,8 @@ ifeq "${LIBTOOL}" "JLIBTOOL"
  19. # binary!
  20. ${JLIBTOOL}: ${top_makedir}/jlibtool.c
  21. $(Q)mkdir -p $(dir $@)
  22. - $(Q)echo CC jlibtool.c
  23. - $(Q)${CC} $< -o $@ ${JLIBTOOL_DEFS}
  24. + $(Q)echo HOSTCC jlibtool.c
  25. + $(Q)${HOSTCC} $< -o $@ ${JLIBTOOL_DEFS}
  26. clean: jlibtool_clean
  27. --
  28. 2.17.1