From 07bda54c4101f90eb85cbcae73dab3cf5491e317 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 22 May 2019 11:19:09 +0000 Subject: [PATCH] build: Windows link against setupapi (hidapi dependency) --- monero-wallet-gui.pro | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/monero-wallet-gui.pro b/monero-wallet-gui.pro index 86072b68..3d4f7b9e 100644 --- a/monero-wallet-gui.pro +++ b/monero-wallet-gui.pro @@ -258,6 +258,14 @@ win32 { QMAKE_LFLAGS += -static-libgcc -static-libstdc++ LIBS+= \ + -Wl,-Bdynamic \ + -lwinscard \ + -lws2_32 \ + -lwsock32 \ + -lIphlpapi \ + -lcrypt32 \ + -lhidapi \ + -lgdi32 $$TREZOR_LINKER \ -Wl,-Bstatic \ -lboost_serialization-mt \ -lboost_thread-mt \ @@ -275,17 +283,10 @@ win32 { -licutu \ -liconv \ -lpthread \ + -lsetupapi \ -lssl \ -lsodium \ - -lcrypto \ - -Wl,-Bdynamic \ - -lwinscard \ - -lws2_32 \ - -lwsock32 \ - -lIphlpapi \ - -lcrypt32 \ - -lhidapi \ - -lgdi32 $$TREZOR_LINKER + -lcrypto !contains(QMAKE_TARGET.arch, x86_64) { message("Target is 32bit")