Last active
December 8, 2023 19:22
-
-
Save remlapmot/245edd63f250683ef56d3f0e09dee7a9 to your computer and use it in GitHub Desktop.
~/.R/Makevars file - to make homebrew libraries available whilst compiling source packages on Apple Silicon computers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FC=/usr/local/bin/gfortran | |
F77=/usr/local/bin/gfortran | |
FLIBS=-L/usr/local/gfortran/lib | |
CFLAGS=-I/opt/homebrew/include | |
CPPFLAGS=-I/opt/homebrew/include | |
CXXFLAGS=-I/opt/homebrew/include | |
CXX11FLAGS=-I/opt/homebrew/include | |
LDFLAGS=-L/opt/homebrew/lib | |
#LDFLAGS="-L/opt/homebrew/opt/libomp/lib" | |
#CPPFLAGS="-I/opt/homebrew/opt/libomp/include" | |
CPPFLAGS+=-Xclang -fopenmp | |
LDFLAGS+=-lomp |
M2 MacBook Air
FLIBS=-L/opt/homebrew/opt/gfortran/lib
F77=/opt/homebrew/bin/gfortran
FC=/opt/homebrew/bin/gfortran
CFLAGS=-I/opt/homebrew/include
CPPFLAGS=-I/opt/homebrew/include
CXXFLAGS=-I/opt/homebrew/include
CXX11FLAGS=-I/opt/homebrew/include
LDFLAGS=-L/opt/homebrew/lib
LDFLAGS+="-L/opt/homebrew/opt/libomp/lib"
CPPFLAGS+="-I/opt/homebrew/opt/libomp/include"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On my M1 Mac Mini