0001-Makefile.system-don-t-specify-optimization-level-bui.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 89648b76e35dc4657942c861ed9dbfbfe5a3df28 Mon Sep 17 00:00:00 2001
  2. From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
  3. Date: Fri, 5 Mar 2021 14:09:23 +0100
  4. Subject: [PATCH] Makefile.system: don't specify optimization level
  5. [buildroot-specific]
  6. Buildroot will pass an optimization level, but it is ignored because the
  7. openblas makefiles _append_ to the flags passed on the command-line.
  8. The CFLAGS/FFLAGS would e.g. contain '-Os -O2' in which -O2 survives.
  9. Remove the optimization level specified in openblas itself.
  10. Upstream: N/A, not upstreamable
  11. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
  12. ---
  13. Makefile.system | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/Makefile.system b/Makefile.system
  16. index 343b94bb3..c355ca5d9 100644
  17. --- a/Makefile.system
  18. +++ b/Makefile.system
  19. @@ -1585,11 +1585,11 @@ FCOMMON_OPT += -g
  20. endif
  21. ifndef COMMON_OPT
  22. -COMMON_OPT = -O2
  23. +COMMON_OPT =
  24. endif
  25. ifndef FCOMMON_OPT
  26. -FCOMMON_OPT = -O2 -frecursive
  27. +FCOMMON_OPT = -frecursive
  28. endif
  29. override CFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR)
  30. --
  31. 2.40.1