Skip to content

Commit

Permalink
Merge pull request #208 from jeroen/master
Browse files Browse the repository at this point in the history
Two small tweaks for cross compiling
  • Loading branch information
kevinushey authored Jan 11, 2024
2 parents d4573c1 + 3cba1e2 commit 02b86ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/tbb.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tbbCxxFlags <- function() {
tbbLdFlags <- function() {

# shortcut if TBB_LIB defined
tbbLib <- Sys.getenv("TBB_LIB", unset = TBB_LIB)
tbbLib <- Sys.getenv("TBB_LINK_LIB", Sys.getenv("TBB_LIB", unset = TBB_LIB))
if (nzchar(tbbLib)) {
fmt <- "-L%1$s -Wl,-rpath,%1$s -ltbb -ltbbmalloc"
return(sprintf(fmt, asBuildPath(tbbLib)))
Expand Down
1 change: 1 addition & 0 deletions src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ else

ifeq ($(UNAME), Darwin)
USE_TBB=Mac
MAKE_ARGS += arch=$(shell uname -m)
endif

ifeq ($(UNAME), Linux)
Expand Down

0 comments on commit 02b86ca

Please sign in to comment.