[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: qmake, --as-needed and pokerth FTBFS



On Wed, 12 Dec 2007 11:20:59 +0100 Evgeni Golov wrote:

> Could someone, who knows the magic behind --as-needed, have a look at
> the source and tell me how to fix that? Upstream is interested in
> fixing, but does not have a clue how :(

It is more magic as I thought, as the attached patch fixes it.
However, I do not understand WHY :(
Index: pokerth_server.pro
===================================================================
--- pokerth_server.pro	(Revision 1358)
+++ pokerth_server.pro	(Arbeitskopie)
@@ -145,6 +145,9 @@
 }
 
 unix : !mac {
+	LIBPATH += lib
+	LIBS += -lpokerth_lib
+
 	exists( /usr/lib/libboost_thread-mt.so ){
 		message("Found libboost_thread-mt")
 		LIBS += -lboost_thread-mt
@@ -186,8 +189,6 @@
 			LIBS += -lboost_filesystem
 		}
 	}
-	LIBPATH += lib
-	LIBS += -lpokerth_lib
 	LIBS += -lcrypto
 	TARGETDEPS += ./lib/libpokerth_lib.a
 
Index: pokerth_game.pro
===================================================================
--- pokerth_game.pro	(Revision 1358)
+++ pokerth_game.pro	(Arbeitskopie)
@@ -276,6 +276,9 @@
 }
 
 unix: !mac{
+	LIBPATH += lib
+	LIBS += -lpokerth_lib
+
 	exists( /usr/lib/libboost_thread-mt.so ){
 		message("Found libboost_thread-mt")
 		LIBS += -lboost_thread-mt
@@ -318,8 +321,6 @@
 		}
 	}
 
-	LIBPATH += lib
-	LIBS += -lpokerth_lib
 	LIBS += -lcrypto -lSDL_mixer
 	TARGETDEPS += ./lib/libpokerth_lib.a
 

Attachment: pgpzUKIHrHDtt.pgp
Description: PGP signature


Reply to: