-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from l-ramirez-lopez/2.2
2.2: build(gfortran)
- Loading branch information
Showing
4 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
CXX_STD = CXX11 | ||
## Use the R_HOME indirection to support installations of multiple R version | ||
## PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS) | ||
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(SHLIB_OPENMP_CXXFLAGS) | ||
# deprecated: PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(SHLIB_OPENMP_CXXFLAGS) | ||
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS) | ||
|
||
PKG_CPPFLAGS = -I../inst/include -I. | ||
|
||
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) | ||
CXX_STD = CXX11 | ||
|
||
F77 = $(GCCBASE)/bin/gfortran | ||
FC = $F77 | ||
FLIBS = -L$(GCCBASE)/bin/gfortran | ||
## WARNING: although the following lines trip symbols to make the installation | ||
|
||
#F77 = $(GCCBASE)/bin/gfortran | ||
#FC = $F77 | ||
#FLIBS = -L$(GCCBASE)/bin/gfortran | ||
|
||
## WARNING: although the following lines strip symbols to make the installation | ||
## smaller, CRAN policies do not allow this | ||
#strippedLib: $(SHLIB) | ||
# if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]]; then /usr/bin/strip --strip-debug $(SHLIB); fi | ||
#.phony: strippedLib | ||
#.phony: strippedLib |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
CXX_STD = CXX11 | ||
|
||
## This assumes that we can call Rscript to ask Rcpp about its locations | ||
## Use the R_HOME indirection to support installations of multiple R version | ||
PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "Rcpp:::LdFlags()") | ||
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS) | ||
|
||
PKG_CPPFLAGS = -I../inst/include -I. | ||
PKG_LIBS += $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CFLAGS) | ||
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) | ||
|
||
## WARNING: although the following lines strip symbols to make the installation | ||
## smaller, CRAN policies do not allow this | ||
#strippedLib: $(SHLIB) | ||
# if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux" ]]; then /usr/bin/strip --strip-debug $(SHLIB); fi | ||
#.phony: strippedLib |