From 365b92a1ead1b80077fac0929e2bbfbd25cdcdd0 Mon Sep 17 00:00:00 2001 From: Sylvain Jeaugey Date: Wed, 12 Oct 2022 01:23:46 -0700 Subject: [PATCH] Fix build on RHEL7 with GCC 4.8 Add -std=c++11 to CXXFLAGS. Fixes #116. --- src/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile b/src/Makefile index 6d8b1ef..6ea0730 100644 --- a/src/Makefile +++ b/src/Makefile @@ -35,6 +35,7 @@ NVCC_GENCODE ?= -gencode=arch=compute_35,code=sm_35 \ endif NVCUFLAGS := -ccbin $(CXX) $(NVCC_GENCODE) -std=c++11 +CXXFLAGS := -std=c++11 LDFLAGS := -L${CUDA_LIB} -lcudart -lrt NVLDFLAGS := -L${CUDA_LIB} -l${CUDARTLIB} -lrt