summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch
diff options
context:
space:
mode:
authorAiden Grossman <agrossman154@yahoo.com>2023-12-19 08:22:29 -0800
committerGitHub <noreply@github.com>2023-12-19 17:22:29 +0100
commit3f063153f0f59324da8c736428a374effcc9b479 (patch)
tree0142833f83c9cfc7a0332b6efa14f1575b9148fb /var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch
parentaa350a4ed149e42ea83167fd29c6ea6b35f7fafb (diff)
downloadspack-3f063153f0f59324da8c736428a374effcc9b479.tar.gz
spack-3f063153f0f59324da8c736428a374effcc9b479.tar.bz2
spack-3f063153f0f59324da8c736428a374effcc9b479.tar.xz
spack-3f063153f0f59324da8c736428a374effcc9b479.zip
openblas: add patches to build with clang (#39138)
Diffstat (limited to 'var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch')
-rw-r--r--var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch b/var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch
new file mode 100644
index 0000000000..4ae1427c33
--- /dev/null
+++ b/var/spack/repos/builtin/packages/openblas/openblas_append_lflags.patch
@@ -0,0 +1,26 @@
+diff --git a/ctest/Makefile b/ctest/Makefile
+index 0fb2450d28..9e85d23b96 100644
+--- a/ctest/Makefile
++++ b/ctest/Makefile
+@@ -208,7 +208,7 @@ FLDFLAGS = $(FFLAGS:-fPIC=) $(LDFLAGS)
+ ifeq ($(USE_OPENMP), 1)
+ ifeq ($(F_COMPILER), GFORTRAN)
+ ifeq ($(C_COMPILER), CLANG)
+-CEXTRALIB = -lomp
++CEXTRALIB += -lomp
+ endif
+ endif
+ ifeq ($(F_COMPILER), NAG)
+diff --git a/test/Makefile b/test/Makefile
+index 923f1537c2..46a7b11583 100644
+--- a/test/Makefile
++++ b/test/Makefile
+@@ -265,7 +265,7 @@ FLDFLAGS = $(FFLAGS:-fPIC=) $(LDFLAGS)
+ ifeq ($(USE_OPENMP), 1)
+ ifeq ($(F_COMPILER), GFORTRAN)
+ ifeq ($(C_COMPILER), CLANG)
+-CEXTRALIB = -lomp
++CEXTRALIB += -lomp
+ endif
+ endif
+ ifeq ($(F_COMPILER), NAG) \ No newline at end of file