Skip to content

Commit 57dba41

Browse files
reibax-marcuszboszor
authored andcommitted
fix: Makefile openblas missing cblas.h
Compiling cblas using Makefiles instead of cmake results in make install skipping cblas.h because the Makefile is not verifying the value of the variable NO_CBLAS. This modification fixes that behabior.
1 parent 698c48b commit 57dba41

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 02b9272248c902740068555ea1f06fd19f9b726a Mon Sep 17 00:00:00 2001
2+
From: Xabier Marquiegui <[email protected]>
3+
Date: Tue, 12 Aug 2025 13:13:31 +0200
4+
Subject: [PATCH] fix: cblas installation ignores the value of NO_CBLAS
5+
6+
---
7+
Makefile.install | 2 +-
8+
1 file changed, 1 insertion(+), 1 deletion(-)
9+
10+
diff --git a/Makefile.install b/Makefile.install
11+
index 6892efa51..5169ad3ff 100644
12+
--- a/Makefile.install
13+
+++ b/Makefile.install
14+
@@ -68,7 +68,7 @@ install : lib.grd
15+
@cat common_interface.h >> "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/f77blas.h"
16+
@echo \#endif >> "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/f77blas.h"
17+
18+
-ifndef NO_CBLAS
19+
+ifneq ($(NO_CBLAS),1)
20+
@echo Generating cblas.h in $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
21+
@cp cblas.h cblas.tmp
22+
ifdef SYMBOLPREFIX
23+
--
24+
2.39.5
25+

recipes-support/openblas/openblas_0.3.28.bb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ DEPENDS = "make libgfortran patchelf-native"
1616

1717
LIC_FILES_CHKSUM = "file://LICENSE;md5=5adf4792c949a00013ce25d476a2abc0"
1818

19-
SRC_URI = "git://github.com/xianyi/OpenBLAS.git;protocol=https;branch=develop"
19+
SRC_URI = "\
20+
file://0001-fix-cblas-installation-ignores-the-value-of-NO_CBLAS.patch \
21+
git://github.com/xianyi/OpenBLAS.git;protocol=https;branch=develop \
22+
"
2023

2124
SRCREV = "5ef8b1964658f9cb6a6324a06f6a1a022609b0c5"
2225

0 commit comments

Comments
 (0)