[R] Option "-shared" not being passed to gcc when installing packages

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Thu Sep 21 09:09:46 CEST 2023


On Thu, 21 Sep 2023 10:09:56 +1000
Simon Knapp <sleepingwell using gmail.com> wrote:

> I am using R version 4.3.1 (2023-06-16) -- "Beagle Scouts" on ubuntu
> 20.04

> gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG    -fopenmp -fpic
> -g -O2 -fdebug-prefix-map=/build/r-base-jbaK_j/r-base-3.6.3=.

It seems to be picking up compiler flags from a much older version of
R. Do you have anything in ~/.R/Makevars*? What about /etc/R/Make*?
https://cran.r-project.org/doc/manuals/R-admin.html#Customizing-package-compilation

-- 
Best regards,
Ivan



More information about the R-help mailing list