Permalink
Browse files

Move -std=c++11 cxxflag to PZSTD_CXXFLAGS

Fixes the problem that the compiler doesn't enable c++11 mode by default
and the package build system has its own CXXFLAGS
  • Loading branch information...
1 parent 39c105c commit 37a2fb4ce128f0faffbbddf9b392e20a1b1b7226 @Chocobo1 Chocobo1 committed Dec 26, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 contrib/pzstd/Makefile
@@ -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)

0 comments on commit 37a2fb4

Please sign in to comment.