From 3eed5c9c01a61563f2ec3b37f3d198a0c964622e Mon Sep 17 00:00:00 2001 From: amayank Date: Thu, 7 Mar 2013 12:20:13 -0800 Subject: [PATCH] Putting option -std=gnu++0x in Makefile rather than fbcode.gcc471.sh Summary: This option is needed for compilation and the open-sourced rocksdb version wiull need to get it from Makefile Test Plan: make clean;make Reviewers: MarkCallaghan, dhruba, sheki, chip CC: leveldb Differential Revision: https://reviews.facebook.net/D9243 --- Makefile | 2 +- fbcode.gcc471.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3f1fe9fcb8..728983ba53 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ include build_config.mk WARNING_FLAGS = -Wall -Werror -Wno-unused-parameter -Wno-sign-compare CFLAGS += -g $(WARNING_FLAGS) -I. -I./include $(PLATFORM_CCFLAGS) $(OPT) -CXXFLAGS += -g $(WARNING_FLAGS) -I. -I./include $(PLATFORM_CXXFLAGS) $(OPT) +CXXFLAGS += -g $(WARNING_FLAGS) -I. -I./include $(PLATFORM_CXXFLAGS) $(OPT) -std=gnu++0x LDFLAGS += $(PLATFORM_LDFLAGS) diff --git a/fbcode.gcc471.sh b/fbcode.gcc471.sh index d0a5c4cbe9..bf526c4c38 100644 --- a/fbcode.gcc471.sh +++ b/fbcode.gcc471.sh @@ -28,7 +28,7 @@ ZLIB_INCLUDE=" -I $TOOLCHAIN_LIB_BASE/zlib/zlib-1.2.5/91ddd43/include" ZLIB_LIBS=" $TOOLCHAIN_LIB_BASE/zlib/zlib-1.2.5/91ddd43/lib/libz.a" # location of boost headers and libraries -THRIFT_INCLUDE=" -I $TOOLCHAIN_LIB_BASE/boost/boost-1.48.0/2a0840d/include -std=gnu++0x" +THRIFT_INCLUDE=" -I $TOOLCHAIN_LIB_BASE/boost/boost-1.48.0/2a0840d/include" THRIFT_INCLUDE+=" -I./thrift -I./thrift/gen-cpp -I./thrift/lib/cpp" THRIFT_LIBS=" -L $TOOLCHAIN_LIB_BASE/boost/boost-1.48.0/2a0840d/lib"