aboutsummaryrefslogtreecommitdiff
path: root/bitcoin-qt.pro
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-09-02 18:33:09 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-09-02 18:33:09 +0200
commit0aca8577b55d218f72c7383b2464ca07b7f77d0d (patch)
treef025a92e1c5324c3dd0338a5d546f6a14383c405 /bitcoin-qt.pro
parentb2d1129f27a499fa00ab8f5b8f0e9f926ae66362 (diff)
support USE_UPNP setting
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r--bitcoin-qt.pro8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro
index 84712e3b0f..951296891a 100644
--- a/bitcoin-qt.pro
+++ b/bitcoin-qt.pro
@@ -14,6 +14,14 @@ windows:LIBS += -lboost_system-mgw44-mt-1_43 -lboost_filesystem-mgw44-mt-1_43 -l
windows:DEFINES += __WXMSW__
windows:RC_FILE = src/qt/res/bitcoin-qt.rc
+# use: qmake "USE_UPNP=1"
+# miniupnpc (http://miniupnp.free.fr/files/) must be installed
+count(USE_UPNP, 1) {
+ message(Building with UPNP support)
+ DEFINES += USE_UPNP=$$USE_UPNP
+ LIBS += -lminiupnpc
+}
+
# for extra security against potential buffer overflows
QMAKE_CXXFLAGS += -fstack-protector
QMAKE_LFLAGS += -fstack-protector