Skip to content

Commit c5982ca

Browse files
committed
Update LDDFLAGS
1 parent 5118839 commit c5982ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/build.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ tbbLdFlags <- function() {
6363
tbb <- tbbLibPath()
6464
paste("-L", asBuildPath(dirname(tbb)), " -ltbb -ltbbmalloc", sep = "")
6565
} else if (dir.exists(Sys.getenv("TBB_LIB"))) {
66-
paste("-L", asBuildPath(Sys.getenv("TBB_LIB")), " -ltbb -ltbbmalloc", sep = "")
66+
TBB_LIB <- asBuildPath(Sys.getenv("TBB_LIB"))
67+
paste0("-L", shQuote(TBB_LIB), " -Wl,-rpath,", TBB_LIB, " -ltbb -ltbbmalloc")
6768
} else {
6869
""
6970
}

0 commit comments

Comments
 (0)