From 351f65377b924a508a86a6d706a24a623e89f942 Mon Sep 17 00:00:00 2001 From: APTX Date: Sat, 22 Jan 2011 00:25:17 +0100 Subject: [PATCH] More gcc fixes, projects linking to this library on linux, should be able to do it more easily. --- anidbudpclient.pri | 4 ++++ client.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/anidbudpclient.pri b/anidbudpclient.pri index a7209dd..9b0152e 100644 --- a/anidbudpclient.pri +++ b/anidbudpclient.pri @@ -26,3 +26,7 @@ INCLUDEPATH += $$PWD/include DEPENDPATH += $$PWD LIBS += -lanidbudpclient LIBS += -L$$PWD/build + +unix { + QMAKE_LFLAGS += -Wl,-rpath,$$LD_LIBRARY_PATH:.:../anidbudpclient/build +} diff --git a/client.cpp b/client.cpp index 60d56fa..81892ea 100644 --- a/client.cpp +++ b/client.cpp @@ -931,4 +931,7 @@ qDebug() << QString("Generated id %1").arg(result.constData()); Client *Client::m_instance = 0; +// TODO, figure out why GCC can't export it like it could before, and if this works in other compilers. +const int Client::UDP_API_COMMAND_TIMEOUT; + } // namespace AniDBUdpClient -- 2.52.0