|
1 | 1 | #! /bin/sh |
2 | 2 |
|
| 3 | +LOCAL=/opt/R/x86_64 |
| 4 | + |
3 | 5 | ### This file is part of R. |
4 | 6 | ### |
5 | 7 | ### R is free software; you can redistribute it and/or modify it under |
|
45 | 47 | ## It is also necessary to set the architecture here, e.g. 'gcc -m32'. |
46 | 48 | ## If this is a wrapper it should pass on --version to the real compiler. |
47 | 49 | ## This will be replaced by CC23 (see below) if a C23 compiler is found. |
48 | | -## CC= |
| 50 | +CC=clang |
49 | 51 |
|
50 | 52 | ## Debugging and optimization options for the C compiler. |
51 | 53 | ## Use this to specify CFLAGS for the version of the C compiler |
|
111 | 113 | ## options (such as defines) for the C preprocessor and compiler. |
112 | 114 | ## If unset defaults to '-I/usr/local/include', with '-I/sw/include' |
113 | 115 | ## prepended on systems using Fink with root '/sw'. |
114 | | -## CPPFLAGS= |
| 116 | +CPPFLAGS='-isystem $LOCAL/include' |
115 | 117 |
|
116 | 118 | ## The command which runs the Fortran compiler. |
117 | 119 | ## Used for both fixed-form and free-form Fortran |
118 | 120 | ## If this is a wrapper it should pass on --version to the real compiler. |
119 | | -## FC= |
| 121 | +FC="/opt/gfortran/bin/gfortran -mtune=native" |
120 | 122 |
|
121 | 123 | ## Options for the Fortran compiler. |
122 | 124 | ## Use this to specify comilation flags for fixed-form Fortran. |
|
223 | 225 | ## and then looks under the names 'c++', 'g++', 'CC' and more OS-specific |
224 | 226 | ## names (from autoconf). |
225 | 227 | ## If this is a wrapper it should pass on --version to the real compiler. |
226 | | -## CXX= |
| 228 | +CXX=clang++ |
227 | 229 |
|
228 | 230 | ## Options for the C++ compiler. |
229 | 231 | ## CXXFLAGS= |
|
255 | 257 |
|
256 | 258 | ## Objective-C(++), mainly for macOS |
257 | 259 | ## On macOS, Apple clang with additional gcc flag -fobjc-exceptions |
258 | | -## OBJC= |
| 260 | +OBJC=$CC |
259 | 261 | ## OBJCFLAGS= |
260 | 262 | ## OBJC_LIBS- |
261 | 263 | ## Objective-C compiler, usually the same as $CXX $CXXSTD |
|
0 commit comments