[R-pkg-devel] Conditional Makevars MacOS

Guido Kraemer gkr@emer @end|ng |rom bgc-jen@@mpg@de
Wed Nov 25 22:01:25 CET 2020


I have solved it for now using:

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
     PKG_CPPFLAGS=...
     PKG_LIBS=...
else
     PKG_CPPFLAGS=...
     PKG_LIBS=...
endif

But R CMD check now complains about GNU extensions.

Best,

Guido


On 11/25/20 2:50 PM, Guido Kraemer wrote:
> I need to set up different compile flags for MacOS, Linux, and 
> Windows. For Windows I can just use `Makevars.win` but I cannot figure 
> out how to do the same for MacOS.
>
> Cheers,
>
> Guido
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list