From 7cd040824620b132b093dedec275292e42d17a0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Villemot?= Date: Thu, 13 Feb 2020 17:52:52 +0000 Subject: [PATCH] Fix build failure in tests for OpenMP variants Bug: https://github.com/xianyi/OpenBLAS/issues/2416 Last-Update: 2020-02-13 Last-Update: 2020-02-13 Gbp-Pq: Name link-tests-openmp.patch --- ctest/Makefile | 2 ++ test/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ctest/Makefile b/ctest/Makefile index f562c9b..2902161 100644 --- a/ctest/Makefile +++ b/ctest/Makefile @@ -108,6 +108,8 @@ ifeq ($(USE_OPENMP), 1) ifeq ($(F_COMPILER), GFORTRAN) ifeq ($(C_COMPILER), CLANG) CEXTRALIB = -lomp +else +CEXTRALIB = -lgomp endif endif endif diff --git a/test/Makefile b/test/Makefile index 074411b..70af30f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -126,6 +126,8 @@ ifeq ($(USE_OPENMP), 1) ifeq ($(F_COMPILER), GFORTRAN) ifeq ($(C_COMPILER), CLANG) CEXTRALIB = -lomp +else +CEXTRALIB = -lgomp endif endif endif -- 2.30.2