0002-gcc.jam-compiler-options-fix.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From a891e48ed0b647b7bf550ad1d179398b23d0726e Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
  3. Date: Sat, 2 May 2015 13:47:54 +0200
  4. Subject: [PATCH] gcc.jam compiler options fix
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Only PowerPC, SPARC, and x86 do support the -m32 and -m64 compiler options [1].
  9. Rather then excluding all architectures not supporting these options as it is
  10. done in commit c0634341d9ee2c02d3a55c91dafb988afc066c49 [2], include all
  11. architectures that do support them.
  12. [1] https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html
  13. [2] https://github.com/boostorg/build/commit/c0634341d9ee2c02d3a55c91dafb988afc066c49
  14. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  15. ---
  16. src/tools/gcc.jam | 2 +-
  17. 1 file changed, 1 insertion(+), 1 deletion(-)
  18. diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
  19. index db04534..fbe8ab0 100644
  20. --- a/tools/build/src/tools/gcc.jam
  21. +++ b/tools/build/src/tools/gcc.jam
  22. @@ -451,7 +451,7 @@ rule setup-address-model ( targets * : sources * : properties * )
  23. else
  24. {
  25. local arch = [ feature.get-values architecture : $(properties) ] ;
  26. - if $(arch) != arm
  27. + if $(arch) = power || $(arch) = sparc || $(arch) = x86
  28. {
  29. if $(model) = 32
  30. {
  31. --
  32. 2.3.7