build: fixes build with Trezor, requires #4945, on current monero master

This commit is contained in:
Dusan Klinec
2018-12-17 22:10:21 +01:00
parent bac833c1dd
commit d8b40b6c46
3 changed files with 27 additions and 18 deletions

View File

@@ -101,6 +101,8 @@ SOURCES = *.qml \
wizard/*js
}
# Linker flags required by Trezor
TREZOR_LINKER = $$cat($$WALLET_ROOT/lib/trezor_link_flags.txt)
ios:armv7 {
message("target is armv7")
@@ -258,7 +260,7 @@ win32 {
-lIphlpapi \
-lcrypt32 \
-lhidapi \
-lgdi32
-lgdi32 $$TREZOR_LINKER
!contains(QMAKE_TARGET.arch, x86_64) {
message("Target is 32bit")
@@ -302,7 +304,7 @@ linux {
-llmdb \
-lsodium \
-lhidapi-libusb \
-lcrypto
-lcrypto $$TREZOR_LINKER
if(!android) {
LIBS+= \
@@ -343,7 +345,7 @@ macx {
-lssl \
-lsodium \
-lcrypto \
-ldl
-ldl $$TREZOR_LINKER
QMAKE_LFLAGS += -pie
}