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
CXX = g++
CCFLAGS += -MMD -Wall -Werror -fPIC
CXXFLAGS += -MMD -Wall -Werror -fPIC
# Remove -Wall, because it enables -Wunused-function, and this warning exists in webp.h
# when enable c++11. I don't know why.
CCFLAGS += -MMD -Werror -fPIC
CXXFLAGS += -MMD -Werror -fPIC -std=c++11
ARFLAGS = cr
DEFINES += -DLINUX

View File

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