Skip to content

Instantly share code, notes, and snippets.

@mike-lawrence
Created March 3, 2014 17:04
Show Gist options
  • Save mike-lawrence/9329512 to your computer and use it in GitHub Desktop.
Save mike-lawrence/9329512 to your computer and use it in GitHub Desktop.
Patch for R's Makeconf on Mavericks (uses clang and gfortran)
--- /Library/Frameworks/R.framework/Resources/etc/Makeconf 2013-09-25 08:59:05.000000000 -0300
+++ Makeconf 2014-03-03 13:01:00.000000000 -0400
@@ -14,11 +14,11 @@
AWK = awk
BLAS_LIBS = -L$(R_HOME)/lib$(R_ARCH) -lRblas
C_VISIBILITY =
-CC = llvm-gcc-4.2 -arch x86_64 -std=gnu99
+CC = clang -arch x86_64 -std=gnu99
CFLAGS = -mtune=core2 -g -O2 $(LTO)
CPICFLAGS = -fPIC
CPPFLAGS = -I/usr/local/include
-CXX = llvm-g++-4.2 -arch x86_64
+CXX = clang++ -arch x86_64
CXXCPP = $(CXX) -E
CXXFLAGS = -mtune=core2 -g -O2 $(LTO)
CXXPICFLAGS = -fPIC
@@ -31,14 +31,14 @@
ECHO_N =
ECHO_T =
## NB, set FC before F77 as on Solaris make, setting FC sets F77
-FC = gfortran-4.2 -arch x86_64
+FC = gfortran -arch x86_64
FCFLAGS = -g -O2 $(LTO)
## additional libs needed when linking with $(FC), e.g. on Solaris
FCLIBS =
-F77 = gfortran-4.2 -arch x86_64
+F77 = gfortran -arch x86_64
F77_VISIBILITY =
FFLAGS = -g -O2 $(LTO)
-FLIBS = -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64 -L/usr/local/lib/x86_64 -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3 -lgfortran
+FLIBS = -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64 -L/usr/local/lib/x86_64 -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3
FCPICFLAGS = -fno-common
FPICFLAGS = -fPIC
FOUNDATION_CPPFLAGS =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment