summaryrefslogtreecommitdiff
path: root/libopencl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libopencl/Makefile')
-rw-r--r--libopencl/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/libopencl/Makefile b/libopencl/Makefile
index d4c3c69..1352764 100644
--- a/libopencl/Makefile
+++ b/libopencl/Makefile
@@ -74,6 +74,11 @@ CCFLAGS = -O3 -g -Wall -fPIC $(GL)
ifeq ($(DEBUG),1)
CCFLAGS = -Wall -g -fPIC $(GL)
endif
+GNUC_CPP0X := $(shell gcc --version | perl -ne 'if (/gcc\s+\(.*\)\s+([0-9.]+)/){ if($$1 >= 4.3) {$$n=1} else {$$n=0;} } END { print $$n; }')
+ifeq ($(GNUC_CPP0X), 1)
+ CCFLAGS += -std=c++0x
+endif
+
PROG =opencl