Skip to content

Commit b209915

Browse files
Fix build with clang
There are two instances when building the tests where OpenBLAS fails to build with OpenMP and clang due to library paths getting reset as flags are set rather than appended. This seems to only affect certain clang/libomp installations, but if it's already grabbing the correct library paths we might as well use them.
1 parent 7976def commit b209915

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ctest/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ FLDFLAGS = $(FFLAGS:-fPIC=) $(LDFLAGS)
208208
ifeq ($(USE_OPENMP), 1)
209209
ifeq ($(F_COMPILER), GFORTRAN)
210210
ifeq ($(C_COMPILER), CLANG)
211-
CEXTRALIB = -lomp
211+
CEXTRALIB += -lomp
212212
endif
213213
endif
214214
ifeq ($(F_COMPILER), NAG)

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ FLDFLAGS = $(FFLAGS:-fPIC=) $(LDFLAGS)
265265
ifeq ($(USE_OPENMP), 1)
266266
ifeq ($(F_COMPILER), GFORTRAN)
267267
ifeq ($(C_COMPILER), CLANG)
268-
CEXTRALIB = -lomp
268+
CEXTRALIB += -lomp
269269
endif
270270
endif
271271
ifeq ($(F_COMPILER), NAG)

0 commit comments

Comments
 (0)