Linux: static libgcc and libstdc++

This commit is contained in:
Jaquee
2017-02-07 20:10:17 +01:00
parent 08ceb5eba0
commit 20833579e9
3 changed files with 28 additions and 21 deletions

View File

@@ -196,8 +196,13 @@ win32 {
linux {
CONFIG(static) {
message("using static libraries")
LIBS+= -Wl,-Bstatic
LIBS+= -Wl,-Bstatic
QMAKE_LFLAGS += -static-libgcc -static-libstdc++
contains(QT_ARCH, x86_64) {
LIBS+= -lunbound
}
}
LIBS+= \
-lboost_serialization \
-lboost_thread \
@@ -210,7 +215,7 @@ linux {
-lssl \
-lcrypto \
-Wl,-Bdynamic \
-ldl
-lGL
# currently monero has an issue with "static" build and linunwind-dev,
# so we link libunwind-dev only for non-Ubuntu distros
CONFIG(libunwind_off) {