Skip to content

Commit b536eec

Browse files
committed
replace preprocessor with compiler variable
1 parent 94a4b9c commit b536eec

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

configure

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ ALL_CXXFLAGS=`"${R_HOME}/bin/R" CMD config ALL_CXXFLAGS`
1111

1212
sed -e "s|@GSL_LIBS@|${GSL_LIBS}|" \
1313
-e "s|@GSL_CFLAGS@|${GSL_CFLAGS}|" \
14-
-e "s|@CC@|${CXX}|" \
14+
-e "s|@CC@|${CC}|" \
15+
-e "s|@CPP@|${CPP}|" \
16+
-e "s|@CXX@|${CXX}|" \
1517
-e "s|@CFLAGS@|${CXXFLAGS}|" \
1618
src/Makevars.in > src/Makevars
1719
sed -e "s|@GSL_LIBS@|${GSL_LIBS}|" \
1820
-e "s|@GSL_CFLAGS@|${GSL_CFLAGS}|" \
19-
-e "s|@CC@|${CXX}|" \
21+
-e "s|@CXX@|${CXX}|" \
22+
-e "s|@CPP@|${CPP}|" \
2023
-e "s|@CFLAGS@|${CXXFLAGS}|" \
2124
-e "s|@CPICFLAGS@|${CXXPICFLAGS}|" \
2225
src/graphm/Makefile.in > src/graphm/Makefile

src/Makevars.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GRAPHM_OBJ_REL = $(addprefix ./graphm/,$(GRAPHM_OBJ) )
2020
PKG_LIBS = $(LDFLAGS) -L$(LIB_GSL)/lib/x64 -lgsl -lgslcblas $(RCPPGSL_LDFLAGS) $(GSL_LIBS)
2121

2222
SHVER= 1
23-
CXX = @CC@
23+
CXX = @CXX@
2424

2525
SOURCES= graphmatch_rcpp.cpp RcppExports.cpp
2626
OBJECTS= $(SOURCES:.cpp=.o) RGraphM_init.o $(GRAPHM_OBJ_REL)

src/graphm/Makefile.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
THIS_CXX = @CC@
1+
THIS_CXX = @CXX@
22
GRAPHM_CFLAGS = -Wno-deprecated -fPIC @CPICFLAGS@ @CFLAGS@ @GSL_CFLAGS@/gsl
33
#-Wno-unused-but-set-variable -Wno-long-long -Wno-sign-compare -Wno-deprecated -pedantic -pthread -O2 -g
44
#LDFLAGS= -lgsl -lgslcblas

0 commit comments

Comments
 (0)