Skip to content

Commit

Permalink
Merge pull request #531 from kalibera/openmp-windows
Browse files Browse the repository at this point in the history
Fix linking of OpenMP libraries on Windows
  • Loading branch information
SebKrantz committed Feb 4, 2024
2 parents a68bf56 + 132b5a1 commit 821b3de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Makevars.win
@@ -1,7 +1,7 @@
## -- compiling for OpenMP
PKG_CFLAGS = -fopenmp -O3
PKG_CXXFLAGS = -fopenmp -DSTRICT_R_HEADERS
PKG_CFLAGS = $(SHLIB_OPENMP_CFLAGS) -O3
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -DSTRICT_R_HEADERS
## -- using C++ 11
# CXX_STD = CXX11
## -- linking for OpenMP
PKG_LIBS = -fopenmp -lgomp
PKG_LIBS = $(SHLIB_OPENMP_CFLAGS)

0 comments on commit 821b3de

Please sign in to comment.