From b621489268b00e816eb18e72be53f9a049787ffb Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Tue, 10 Aug 2010 18:04:54 -0800 Subject: refactor: mostly finished getting rid of extern decl [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7183] --- libopencl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libopencl/Makefile') 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 -- cgit v1.3