From a1ac5fb532f745e5fefab5b98602e6480e0be883 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Wed, 2 Dec 2015 23:16:05 +0100 Subject: [PATCH] LP-29 compile with libc++ on osx to fix issues when linking with osg --- ground/gcs/gcs.pri | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/gcs/gcs.pri b/ground/gcs/gcs.pri index 143b34daa..75385aa71 100644 --- a/ground/gcs/gcs.pri +++ b/ground/gcs/gcs.pri @@ -254,9 +254,11 @@ macx { QMAKE_CFLAGS_WARN_ON += -Werror QMAKE_CXXFLAGS_WARN_ON += -Wno-gnu-static-float-init } + # building with libc++ is needed when linking with osg/gdal + QMAKE_CXXFLAGS += -stdlib=libc++ + QMAKE_LFLAGS += -stdlib=libc++ } - # use ccache when available QMAKE_CC = $$(CCACHE) $$QMAKE_CC QMAKE_CXX = $$(CCACHE) $$QMAKE_CXX