0003-configure.ac-disable-gcc-march-mips64r2-detection.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From 1fd5a3d2adf04bad6ae6e9eef9caead7d46d9307 Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Thu, 8 Nov 2018 23:55:30 +0100
  4. Subject: [PATCH] configure.ac: disable gcc march mips64r2 detection
  5. Disable gcc march mips64r2 detection, compile flags already
  6. set by buildroot, fixes [1]:
  7. error: '-mips64r2' conflicts with the other architecture options, which specify a mips64 processor
  8. [1] http://autobuild.buildroot.net/results/34f6e2352f1559f98c724fe5394db0035b42ddb1
  9. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  10. [Thomas: remove code instead of commenting it]
  11. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  12. ---
  13. configure.ac | 15 ---------------
  14. 1 file changed, 15 deletions(-)
  15. diff --git a/configure.ac b/configure.ac
  16. index 289514ff1..18cf97ffe 100644
  17. --- a/configure.ac
  18. +++ b/configure.ac
  19. @@ -1768,22 +1768,7 @@ case "${host_cpu}" in
  20. AC_SUBST(FLAG_M32)
  21. - # does this compiler support -march=mips64r2 (mips64r2 default) ?
  22. - AC_MSG_CHECKING([if gcc accepts -march=mips64r2 -mabi=64])
  23. -
  24. - safe_CFLAGS=$CFLAGS
  25. - CFLAGS="$CFLAGS -march=mips64r2 -mabi=64 -Werror"
  26. -
  27. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
  28. - return 0;
  29. - ]])], [
  30. - FLAG_M64="-march=mips64r2 -mabi=64"
  31. - AC_MSG_RESULT([yes])
  32. - ], [
  33. FLAG_M64=""
  34. - AC_MSG_RESULT([no])
  35. - ])
  36. - CFLAGS=$safe_CFLAGS
  37. AC_SUBST(FLAG_M64)
  38. ;;
  39. --
  40. 2.19.1