From: APTX Date: Fri, 21 Jan 2011 23:25:17 +0000 (+0100) Subject: More gcc fixes, projects linking to this library on linux, should be able to do it... X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=351f65377b924a508a86a6d706a24a623e89f942;p=anidbudpclient.git More gcc fixes, projects linking to this library on linux, should be able to do it more easily. --- 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