|
|
|
@ -1,6 +1,13 @@
@@ -1,6 +1,13 @@
|
|
|
|
|
CXXFLAGS = -g -Wall -fPIC |
|
|
|
|
INCFLAGS = |
|
|
|
|
|
|
|
|
|
## NOTE: The NEEDED_CXXFLAGS are here so that custom CXXFLAGS can be specified at build time
|
|
|
|
|
## **without** overwriting the CXXFLAGS which we need in order to build.
|
|
|
|
|
## For example, when adding 'hardening flags' to the build
|
|
|
|
|
## (e.g. -fstack-protector-strong -Wformat -Werror=format-security), we do not want to remove
|
|
|
|
|
## -std=c++11. If you want to remove this variable please do so in a way that allows setting
|
|
|
|
|
## custom FLAGS to work at build-time.
|
|
|
|
|
|
|
|
|
|
# detect proper flag for c++11 support by gcc
|
|
|
|
|
CXXVER := $(shell $(CXX) -dumpversion) |
|
|
|
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-9][0-9]"),4) # >= 4.10
|
|
|
|
|