mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs.mk: Disable c++11 features for gcc 4.1.0 (quick hack)
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ba21afa16e
commit
f10449c7a6
1 changed files with 7 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ BUILD_CPPFLAGS += $(CPPFLAGS)
|
|||
BUILD_LDFLAGS += $(LDFLAGS)
|
||||
|
||||
BUILD_CFLAGS += -D_FILE_OFFSET_BITS=64 -Wall -Wno-unused-value -fexceptions -DPROJECT_STR=\"$(PROJECT)\"
|
||||
BUILD_CPPFLAGS += -std=c++11 -D_FILE_OFFSET_BITS=64 -Wall -Wno-unused-value -Wno-deprecated -DPROJECT_STR=\"$(PROJECT)\"
|
||||
BUILD_CPPFLAGS += -D_FILE_OFFSET_BITS=64 -Wall -Wno-unused-value -Wno-deprecated -DPROJECT_STR=\"$(PROJECT)\"
|
||||
BUILD_LDFLAGS += -Wall
|
||||
|
||||
ifneq ($(LOG_QUAL_PREFIX),)
|
||||
|
|
@ -203,6 +203,12 @@ GCC_MAJOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,
|
|||
GCC_MINOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); print a[2];}')
|
||||
GCC_REV = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); print a[3];}')
|
||||
|
||||
ifneq ($(GCC_VERSION),4.1.0)
|
||||
BUILD_CPPFLAGS += -std=c++11
|
||||
else
|
||||
BUILD_CPPFLAGS += -Doverride
|
||||
endif
|
||||
|
||||
LD_VERSION = $(shell ld -V | $(SED) '/GNU ld/ !d; s/(.*)//; s/[^0-9.-]*//')
|
||||
LD_MAJOR = $(shell echo $(LD_VERSION) | cut -d. -f1)
|
||||
LD_MINOR = $(shell echo $(LD_VERSION) | cut -d. -f2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue