Skip to content

Commit 9a0e9c8

Browse files
authored
Merge pull request #4171 from boomanaiden154/clang-libomp-fixes
Fix build with some clang installations when openmp is enabled
2 parents 7af0f41 + b209915 commit 9a0e9c8

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)