mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
std option for different versions of gcc (by hagen)
This commit is contained in:
parent
e51cca8263
commit
796b2d980f
@ -1,15 +1,17 @@
|
|||||||
CC = g++
|
CC = g++
|
||||||
CFLAGS = -g -Wall
|
CFLAGS = -g -Wall
|
||||||
CXXVER := $(shell ${CC} -dumpversion)
|
CXXVER := $(shell ${CC} -dumpversion)
|
||||||
ifeq ($(shell expr match ${CXXVER} "4\.[0-5]"),3)
|
|
||||||
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-9][0-9]"),4) # >= 4.10
|
||||||
|
CFLAGS += -std=c++11
|
||||||
|
else ifeq ($(shell expr match ${CXXVER} "4\.[7-9]"),3) # >= 4.7
|
||||||
|
CFLAGS += -std=c++11
|
||||||
|
else ifeq ($(shell expr match ${CXXVER} "4\.6"),3) # = 4.6
|
||||||
|
CFLAGS += -std=c++0x
|
||||||
|
else # not supported
|
||||||
$(error Compiler too old)
|
$(error Compiler too old)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (${CXXVER},"4.9")
|
|
||||||
CFLAGS += -std=c++11
|
|
||||||
else
|
|
||||||
CFLAGS += -std=c++0x
|
|
||||||
endif
|
|
||||||
|
|
||||||
include filelist.mk
|
include filelist.mk
|
||||||
INCFLAGS =
|
INCFLAGS =
|
||||||
|
Loading…
Reference in New Issue
Block a user