summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-04-27 18:00:30 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-04-27 18:45:56 +0300
commit52cddfc08addf17e23f9cf74787a6ead40797c1d (patch)
treeea7c3ae4d017221be129c8643a07d78be5ebd862 /Makefile
parent9be076ffe9021bbd83b195e6f69d17c366fbf79f (diff)
downloadqtlocation-mapboxgl-52cddfc08addf17e23f9cf74787a6ead40797c1d.tar.gz
[build] Control libstdc++ usage via WITH_CXX11ABI
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9323aa63d9..df5f0eadb5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
export BUILDTYPE ?= Debug
+export WITH_CXX11ABI ?= $(shell scripts/check-cxx11abi.sh)
ifeq ($(BUILDTYPE), Release)
else ifeq ($(BUILDTYPE), Debug)
@@ -293,7 +294,7 @@ $(LINUX_BUILD): $(BUILD_DEPS)
(cd $(LINUX_OUTPUT_PATH) && cmake -G Ninja ../../.. \
-DCMAKE_BUILD_TYPE=$(BUILDTYPE) \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
- -DWITH_CXX11ABI=$(shell scripts/check-cxx11abi.sh) \
+ -DWITH_CXX11ABI=${WITH_CXX11ABI} \
-DWITH_COVERAGE=${WITH_COVERAGE} \
-DWITH_OSMESA=${WITH_OSMESA} \
-DWITH_EGL=${WITH_EGL})