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