]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Move -std=c++11 cxxflag to PZSTD_CXXFLAGS 502/head
authorChocobo1 <Chocobo1@users.noreply.github.com>
Mon, 26 Dec 2016 15:04:59 +0000 (23:04 +0800)
committerChocobo1 <Chocobo1@users.noreply.github.com>
Mon, 26 Dec 2016 15:08:23 +0000 (23:08 +0800)
Fixes the problem that the compiler doesn't enable c++11 mode by default
and the package build system has its own CXXFLAGS

contrib/pzstd/Makefile

index 99d955e948eb229a6b9ef1d08aa9d4d7be325619..f148bfd8e2273fc9dc823823872675e8e9fb5d31 100644 (file)
@@ -26,7 +26,7 @@ POSTCOMPILE = mv -f $*.Td $*.d
 
 # CFLAGS, CXXFLAGS, CPPFLAGS, and LDFLAGS are for the users to override
 CFLAGS   ?= -O3 -Wall -Wextra
-CXXFLAGS ?= -O3 -Wall -Wextra -pedantic -std=c++11
+CXXFLAGS ?= -O3 -Wall -Wextra -pedantic
 CPPFLAGS ?=
 LDFLAGS  ?=
 
@@ -37,7 +37,7 @@ GTEST_INC  = -isystem googletest/googletest/include
 PZSTD_CPPFLAGS  = $(PZSTD_INC)
 PZSTD_CCXXFLAGS =
 PZSTD_CFLAGS    = $(PZSTD_CCXXFLAGS)
-PZSTD_CXXFLAGS  = $(PZSTD_CCXXFLAGS)
+PZSTD_CXXFLAGS  = $(PZSTD_CCXXFLAGS) -std=c++11
 PZSTD_LDFLAGS   =
 EXTRA_FLAGS     =
 ALL_CFLAGS      = $(EXTRA_FLAGS) $(CPPFLAGS) $(PZSTD_CPPFLAGS) $(CFLAGS)   $(PZSTD_CFLAGS)