mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
* Makefile.linux : detect gcc version
This commit is contained in:
parent
bbe146e8d4
commit
5a55e14f98
|
@ -1,5 +1,16 @@
|
||||||
CC = g++
|
CC = g++
|
||||||
CFLAGS = -g -Wall -std=c++0x
|
CFLAGS = -g -Wall
|
||||||
|
CXXVER := $(shell ${CC} -dumpversion)
|
||||||
|
ifeq ($(shell expr match ${CXXVER} "4\.[0-5]"),3)
|
||||||
|
$(error Compiler too old)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq (${CXXVER},"4.6")
|
||||||
|
CFLAGS += -std=c++0x
|
||||||
|
else
|
||||||
|
CFLAGS += -std=c++11
|
||||||
|
endif
|
||||||
|
|
||||||
include filelist.mk
|
include filelist.mk
|
||||||
INCFLAGS =
|
INCFLAGS =
|
||||||
LDFLAGS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
LDFLAGS = -lcryptopp -lboost_system -lboost_date_time -lboost_filesystem -lboost_regex -lboost_program_options -lpthread
|
||||||
|
|
Loading…
Reference in a new issue