Skip to content

Commit

Permalink
packThis.sh fix and Makevars fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kudkudak committed Sep 19, 2015
1 parent a1b8264 commit 3073b39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ BLAS_LIBS = `$(R_HOME)/bin/R CMD config BLAS_LIBS`
# Do not delete R_CPPFLAGS, it will break tests
PKG_CPPFLAGS = $(GCC_STD) $(PREPROCESS) $(R_CPPFLAGS) $(INCLUDES) -pthread
PKG_CXXFLAGS = --std=c++0x
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(R_LIBS)
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(R_LIBS) $(FLIBS)
4 changes: 2 additions & 2 deletions src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ R_CPPFLAGS := $(shell R CMD config --cppflags) $(shell echo 'Rcpp:::CxxFlags()'
LAPACK_LIBS := $(shell R CMD config LAPACK_LIBS)
BLAS_LIBS := $(shell R CMD config BLAS_LIBS)

PKG_CPPFLAGS := $(PKG_CPPFLAGS) $(GCC_STD) $(PREPROCESS) $(R_CPPFLAGS) $(INCLUDES) -Wall -pedantic -mtune=native -static-libstdc++ -static-libgcc -lstdc++ -lpthread
PKG_CPPFLAGS := $(PKG_CPPFLAGS) $(GCC_STD) $(PREPROCESS) $(R_CPPFLAGS) $(INCLUDES) -mtune=native -static-libstdc++ -static-libgcc -lstdc++ -lpthread
PKG_CXXFLAGS := --std=c++0x
PKG_LIBS := $(PKG_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(R_LIBS) -static-libstdc++ -static-libgcc -lstdc++ -lpthread
PKG_LIBS := $(PKG_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(R_LIBS) $(FLIBS) -static-libstdc++ -static-libgcc -lstdc++ -lpthread
5 changes: 3 additions & 2 deletions src/packThis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Creating folder structure"
mkdir -p $destination

echo "Copy necessary files"
rsync -rP --exclude=".*" --exclude="demo/samples/*" --exclude="inst/data_sets/*" --exclude="cmake/*" --exclude="build/*" --exclude="doc/*" --exclude="libs/*" --exclude="tests/*" --exclude="..Rcheck/*" --include="*.cpp" --include="*.h" --include="*.hpp" --include="*.Rd" --include="*.c" --include="*.R" --include="*/" --exclude="*" . $destination
rsync -rP --exclude=".*" --exclude="demo/samples/*" --exclude="inst/data_sets/*" --exclude="cmake/*" --exclude="build/*" --exclude="doc/*" --exclude="libs/*" --exclude="tests/*" --exclude="..Rcheck/*" --include="*.cpp" --include="*.h" --include="*.hpp" --include="*.Rd" --include="*.c" --include="*.R" --include="*/" --exclude="*" --exclude="pkg/*" --exclude="pkg" . $destination

# Copy datasets
mkdir $destination/data
Expand All @@ -32,6 +32,7 @@ cp LICENSE $destination
cp NAMESPACE $destination
cp demo/00Index $destination/demo
cp src/Makevars $destination/src
cp src/Makevars.win $destination/src
cp inst/include/svmlight/Makefile $destination/inst/include/svmlight/
cp inst/include/svmlight/LICENSE.txt $destination/inst/include/svmlight/

Expand All @@ -41,4 +42,4 @@ cp inst/include/svmlight/LICENSE.txt $destination/inst/include/svmlight/
rm -r $destination/..Rcheck
rm -r $destination/.git
rm -r $destination/.idea

rm -r pkg/pkg

0 comments on commit 3073b39

Please sign in to comment.