]> Some of my projects - anidbudpclient.git/commitdiff
More gcc fixes, projects linking to this library on linux, should be able to do it...
authorAPTX <redacted>
Fri, 21 Jan 2011 23:25:17 +0000 (00:25 +0100)
committerAPTX <redacted>
Fri, 21 Jan 2011 23:25:17 +0000 (00:25 +0100)
anidbudpclient.pri
client.cpp

index a7209dd..9b0152e 100644 (file)
@@ -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
+}
index 60d56fa..81892ea 100644 (file)
@@ -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