diff --git a/src/common.mk b/src/common.mk
index a818719ebcb9e2931916d98ca9a5192e120f09a3..fe49f89da8bc9d35aaf6d330b30c6da0c1233606 100644
--- a/src/common.mk
+++ b/src/common.mk
@@ -35,4 +35,4 @@ else
 	splfr := splfr
 endif
 
-common_splfr_flags := -larmadillo -fopenmp -lmlpack -lstdc++ -cxx --struct
+common_splfr_flags := -larmadillo -fopenmp -lmlpack -lstdc++ -cxx --cxxflag=-std=c++17 --struct