Skip to content

Commit cf672e5

Browse files
committed
Generalizing configure openmp treatment following data.table: part 6
1 parent df0be7b commit cf672e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3286,7 +3286,7 @@ printf "%s\n" "no" >&6; }
32863286
if test x"${can_use_openmp}" = x"no"; then
32873287
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether R CMD SHLIB can compile OpenMP via -fopenmp" >&5
32883288
printf %s "checking whether R CMD SHLIB can compile OpenMP via -fopenmp... " >&6; }
3289-
PKG_CXXFLAGS="${PKG_CXXFLAGS} -fopenmp" PKG_LIBS="${PKG_LIBS} -fopen" "${R_HOME}/bin/R" CMD SHLIB -fopenmp test-omp.cpp >/dev/null 2>&1
3289+
PKG_CXXFLAGS="${PKG_CXXFLAGS} -fopenmp" PKG_LIBS="${PKG_LIBS} -fopenmp" "${R_HOME}/bin/R" CMD SHLIB -fopenmp test-omp.cpp >/dev/null 2>&1
32903290
if test x"$?" = x"0"; then
32913291
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32923292
printf "%s\n" "yes" >&6; }

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ if test x"${SYSKERNEL}" = x"Linux"; then
7777
## If needed, check if R is configured to compile OpenMP programs using -fopenmp
7878
if test x"${can_use_openmp}" = x"no"; then
7979
AC_MSG_CHECKING([whether R CMD SHLIB can compile OpenMP via -fopenmp])
80-
PKG_CXXFLAGS="${PKG_CXXFLAGS} -fopenmp" PKG_LIBS="${PKG_LIBS} -fopen" "${R_HOME}/bin/R" CMD SHLIB -fopenmp test-omp.cpp >/dev/null 2>&1
80+
PKG_CXXFLAGS="${PKG_CXXFLAGS} -fopenmp" PKG_LIBS="${PKG_LIBS} -fopenmp" "${R_HOME}/bin/R" CMD SHLIB -fopenmp test-omp.cpp >/dev/null 2>&1
8181
if test x"$?" = x"0"; then
8282
AC_MSG_RESULT([yes])
8383
# keep any entries user may have set

0 commit comments

Comments
 (0)