Only add c++11 command line flag if not using rand()
@@ -18,14 +18,16 @@ export SRC_DIR = src
export UTIL_DIR = src/utils
export CXX = g++
ifeq ($(DEBUG),1)
-export CXXFLAGS = -std=gnu++0x -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES)
+export CXXFLAGS = -Wall -Wextra -DDEBUG -D_DEBUG -g -O0 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES)
else
-export CXXFLAGS = -std=gnu++0x -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES)
+export CXXFLAGS = -Wall -O2 -D_FILE_OFFSET_BITS=64 -fPIC $(INCLUDES)
endif
# If the user has specified to do so, tell the compile to use rand() (instead of mt19937).
ifeq ($(USE_RAND),1)
export CXXFLAGS = -DUSE_RAND
+else
+export CXXFLAGS = -std=c++11
endif
export LIBS = -lz
