aboutsummaryrefslogtreecommitdiff
path: root/bitcoin-qt.pro
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-11-07 09:50:03 -0500
committerGavin Andresen <gavinandresen@gmail.com>2011-11-07 10:17:30 -0500
commita5f07cbea05fbb03a668dbd5ba3694627cfb5375 (patch)
tree3e8adc0c3834a3545077a1a3f7cd6f738869e37b /bitcoin-qt.pro
parent81a28d7a6f8ab4b3642907b79106d2350a5e7d63 (diff)
Static link on Linux. And better document release process on OSX.
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r--bitcoin-qt.pro18
1 files changed, 18 insertions, 0 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro
index d1a7e68aa4..a8f6b2d86c 100644
--- a/bitcoin-qt.pro
+++ b/bitcoin-qt.pro
@@ -19,6 +19,17 @@ OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
+# use: qmake "RELEASE=1"
+contains(RELEASE, 1) {
+ # Mac: compile for maximum compatibility (10.5, 32-bit)
+ macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
+
+ !windows:!macx {
+ # Linux: static link
+ LIBS += -Wl,-Bstatic
+ }
+}
+
# use: qmake "USE_UPNP=1" ( enabled by default; default)
# or: qmake "USE_UPNP=0" (disabled by default)
# or: qmake "USE_UPNP=-" (not supported)
@@ -255,4 +266,11 @@ LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB
LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
+contains(RELEASE, 1) {
+ !windows:!macx {
+ # Linux: turn dynamic linking back on for c/c++ runtime libraries
+ LIBS += -Wl,-Bdynamic
+ }
+}
+
system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)