diff options
| author | Tor Aamodt <[email protected]> | 2010-08-10 18:04:54 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-08-10 18:04:54 -0800 |
| commit | b621489268b00e816eb18e72be53f9a049787ffb (patch) | |
| tree | 7acb45634570179f27caaed9ae8243868c72c549 /libopencl/Makefile | |
| parent | 6eb2c84753d4538ef6ee6ee27802bff9adbbefab (diff) | |
refactor: mostly finished getting rid of extern decl
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7183]
Diffstat (limited to 'libopencl/Makefile')
| -rw-r--r-- | libopencl/Makefile | 5 |
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 |
