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.
This commit is contained in:
David Christenson 2015-01-28 03:22:36 -07:00
parent 95c75bb8c8
commit 87c272207f
No known key found for this signature in database
GPG key ID: D49807DA9095FC64

View file

@ -10,6 +10,8 @@ exists($$OUT_PWD/../conf.pri) {
} }
LIBS += -framework Carbon -framework IOKit LIBS += -framework Carbon -framework IOKit
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_LFLAGS += -stdlib=libc++
document_icon.path = Contents/Resources document_icon.path = Contents/Resources
document_icon.files = mac/qBitTorrentDocument.icns document_icon.files = mac/qBitTorrentDocument.icns