build: added "libunwind_off" config option so it can be built on other

distros than Ubuntu
This commit is contained in:
Ilya Kitaev
2016-09-22 21:39:43 +03:00
parent 778695b188
commit af30cfdd6e
3 changed files with 41 additions and 11 deletions

View File

@@ -86,9 +86,15 @@ linux {
-lssl \
-lcrypto \
-Wl,-Bdynamic \
# currently monero has an issue with "static" build and linunwind-dev
# -lunwind \
-ldl
# currently monero has an issue with "static" build and linunwind-dev,
# so we link libunwind-dev only for non-Ubuntu distros
CONFIG(libunwind_off) {
message(Building without libunwind)
} else {
message(Building with libunwind)
LIBS += -Wl,-Bdynamic -lunwind
}
}
macx {