From 87c272207f6f3bfd98317c5ec8e4dbd775bbfaf9 Mon Sep 17 00:00:00 2001 From: David Christenson Date: Wed, 28 Jan 2015 03:22:36 -0700 Subject: [PATCH] Add libc++ flags on OS X QT5 on OS X apparently does not add '-stdlib=libc++' to CXXFLAGS or LFLAGS, so they must be added by us for compilation to succeed. --- macxconf.pri | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macxconf.pri b/macxconf.pri index 876af0850..4afd638c2 100644 --- a/macxconf.pri +++ b/macxconf.pri @@ -10,6 +10,8 @@ exists($$OUT_PWD/../conf.pri) { } LIBS += -framework Carbon -framework IOKit +QMAKE_CXXFLAGS += -stdlib=libc++ +QMAKE_LFLAGS += -stdlib=libc++ document_icon.path = Contents/Resources document_icon.files = mac/qBitTorrentDocument.icns