diff --git a/src/makefile b/src/makefile index 3a750d332..0b4b8d22d 100644 --- a/src/makefile +++ b/src/makefile @@ -28,7 +28,8 @@ SRC = $(wildcard *.cpp)\ # Checking for libosrm ifeq ($(shell pkg-config --exists libosrm && echo 1),1) LDLIBS += $(shell pkg-config --libs libosrm) -lboost_filesystem -lboost_iostreams -lboost_thread -lrt -ltbb -CXXFLAGS += $(shell pkg-config --cflags libosrm) -D USE_LIBOSRM=true +LIBOSRMFLAGS = $(shell pkg-config --cflags libosrm) +CXXFLAGS += $(filter-out -std=c++14, $(LIBOSRMFLAGS)) -D USE_LIBOSRM=true else SRC := $(filter-out ./routing/libosrm_wrapper.cpp, $(SRC)) endif