libnss-cross.patch 742 B

123456789101112131415161718192021222324252627
  1. This patch allows us to set a value for the cross compiler via TARGETCC without
  2. setting CC on the command line. CC is used for host tools as well as cross
  3. compiled code so we cannot define it on the command line without breaking
  4. the host tools build.
  5. Signed-off-by: Will Newton <will.newton@imgtec.com>
  6. --- libnss-3.12.9.old/mozilla/security/coreconf/Linux.mk 2011-03-01 10:31:21.517847183 +0000
  7. +++ libnss-3.12.9/mozilla/security/coreconf/Linux.mk 2011-03-01 10:33:42.688648237 +0000
  8. @@ -46,9 +46,13 @@
  9. IMPL_STRATEGY = _PTH
  10. endif
  11. -CC = gcc
  12. -CCC = g++
  13. -RANLIB = ranlib
  14. +TARGETCC = gcc
  15. +TARGETCCC = g++
  16. +TARGETRANLIB = ranlib
  17. +
  18. +CC = $(TARGETCC)
  19. +CCC = $(TARGETCCC)
  20. +RANLIB = $(TARGETRANLIB)
  21. DEFAULT_COMPILER = gcc