Skip to content

Commit 814d915

Browse files
authored
Merge pull request #3070 from stan-dev/tbb-lib-macos
Fix ld error with TBB_LIB on macos
2 parents 887a2e7 + fdec5b1 commit 814d915

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

make/compiler_flags

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,12 @@ CXXFLAGS_TBB ?= -I $(TBB_INC)
284284
else
285285
CXXFLAGS_TBB ?= -I $(TBB)/include
286286
endif
287-
LDFLAGS_TBB ?= -Wl,-L,"$(TBB_LIB)" -Wl,--disable-new-dtags
287+
LDFLAGS_TBB ?= -Wl,-L,"$(TBB_LIB)"
288+
289+
# MacOS ld does not support --disable-new-dtags
290+
ifneq ($(OS),Darwin)
291+
LDFLAGS_TBB += -Wl,--disable-new-dtags
292+
endif
288293

289294
# Windows LLVM/Clang does not support -rpath, but is not needed on Windows anyway
290295
ifneq ($(OS), Windows_NT)

0 commit comments

Comments
 (0)