Skip to content

Commit

Permalink
Missing fPIC flag
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 22, 2024
1 parent a4750aa commit 91583e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ with_cmdstan_flags <- function(expr) {
c(
USE_CXX14 = 1,
PKG_CPPFLAGS = ifelse(cmdstan_version() <= "2.30.1", "-DCMDSTAN_JSON", ""),
PKG_CXXFLAGS = paste(cxxflags, cmdstanr_includes, r_includes, collapse = " "),
PKG_CXXFLAGS = paste(cxxflags, "-fPIC", cmdstanr_includes, r_includes, collapse = " "),
PKG_LIBS = libs
),
expr
Expand Down

0 comments on commit 91583e3

Please sign in to comment.