From d1b75909117a22e9d701e8d6717842db0db3244d Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Fri, 21 Sep 2012 15:42:38 -0400 Subject: [PATCH] Compile/link Bitcoin-Qt.app with -pthread --- bitcoin-qt.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index ae895ea9f0b..a3ad4c9ec9c 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -4,6 +4,7 @@ VERSION = 0.5.7 INCLUDEPATH += src src/json src/qt DEFINES += QT_GUI BOOST_THREAD_USE_LIB CONFIG += no_include_pwd +CONFIG += thread # for boost 1.37, add -mt to the boost libraries # use: qmake BOOST_LIB_SUFFIX=-mt @@ -269,6 +270,9 @@ macx:LIBS += -framework Foundation -framework ApplicationServices -framework App macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0 macx:ICON = src/qt/res/icons/bitcoin.icns macx:TARGET = "Bitcoin-Qt" +macx:QMAKE_CFLAGS_THREAD += -pthread +macx:QMAKE_LFLAGS_THREAD += -pthread +macx:QMAKE_CXXFLAGS_THREAD += -pthread # Set libraries and includes at end, to use platform-defined defaults if not overridden INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH