enable c++11 for linux and natvie client projects

This commit is contained in:
minggo 2013-05-31 15:18:20 +08:00
parent 4f484cbcbf
commit 0a64e7a041
2 changed files with 5 additions and 3 deletions

View File

@ -2,8 +2,10 @@ all:
CC = gcc CC = gcc
CXX = g++ CXX = g++
CCFLAGS += -MMD -Wall -Werror -fPIC # Remove -Wall, because it enables -Wunused-function, and this warning exists in webp.h
CXXFLAGS += -MMD -Wall -Werror -fPIC # when enable c++11. I don't know why.
CCFLAGS += -MMD -Werror -fPIC
CXXFLAGS += -MMD -Werror -fPIC -std=c++11
ARFLAGS = cr ARFLAGS = cr
DEFINES += -DLINUX DEFINES += -DLINUX

View File

@ -10,7 +10,7 @@ NACL_AR ?= $(NACL_ARCH)-nacl-ar
NACL_CC ?= $(NACL_ARCH)-nacl-gcc NACL_CC ?= $(NACL_ARCH)-nacl-gcc
NACL_CXX ?= $(NACL_ARCH)-nacl-g++ NACL_CXX ?= $(NACL_ARCH)-nacl-g++
CCFLAGS += -Wall -Werror CCFLAGS += -Wall -Werror
CXXFLAGS += -Wall -Werror CXXFLAGS += -Wall -Werror -std=c++11
ARFLAGS = cr ARFLAGS = cr
THIS_MAKEFILE := $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) THIS_MAKEFILE := $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))