From c23f522130dd1895be03e56f1da21f14de907767 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 24 Jan 2024 12:17:32 +0200 Subject: [PATCH] fPIC flag --- R/model.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/model.R b/R/model.R index da746b4a..d9acc20c 100644 --- a/R/model.R +++ b/R/model.R @@ -662,6 +662,7 @@ compile <- function(quiet = TRUE, cpp_options_to_compile_flags(c(cpp_options, list("KEEP_OBJECT"="true"))), stancflags_val), wd = cmdstan_path(), + env = c("current", "CXXFLAGS" = "-fPIC"), echo = !quiet || is_verbose_mode(), echo_cmd = is_verbose_mode(), spinner = quiet && rlang::is_interactive() && !identical(Sys.getenv("IN_PKGDOWN"), "true"),