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