Browse Source

gcc7 support

pull/2101/head
orignal 3 months ago
parent
commit
56b8534e0c
  1. 3
      Makefile.linux

3
Makefile.linux

@ -13,6 +13,9 @@ LDFLAGS ?= ${LD_DEBUG} @@ -13,6 +13,9 @@ LDFLAGS ?= ${LD_DEBUG}
CXXVER := $(shell $(CXX) -dumpversion)
ifeq ($(shell expr match $(CXX) 'clang'),5)
NEEDED_CXXFLAGS += -std=c++17
else ifeq ($(shell expr match ${CXXVER} "7"),1) # gcc 7
NEEDED_CXXFLAGS += -std=c++17
LDLIBS = -lboost_filesystem
else ifeq ($(shell expr match ${CXXVER} "[8-9]"),1) # gcc 8 - 9
NEEDED_CXXFLAGS += -std=c++17
LDLIBS = -lstdc++fs

Loading…
Cancel
Save