]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- link with all needed libraries, by Lorenzo Villani
authorMichael Schroeder <mls@suse.de>
Tue, 8 Jun 2010 15:55:22 +0000 (17:55 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 8 Jun 2010 15:58:11 +0000 (17:58 +0200)
CMakeLists.txt
examples/solv.c

index a5fe25905ff6969b615c574aae39f25e9ffebdf6..24234db3ae5d244d176da3474aa8a259996225cb 100644 (file)
@@ -55,6 +55,16 @@ FIND_LIBRARY(RPMDB_LIBRARY NAMES rpmdb)
 IF ( NOT RPMDB_LIBRARY )
 FIND_LIBRARY(RPMDB_LIBRARY NAMES rpm)
 ENDIF( NOT RPMDB_LIBRARY )
+FIND_LIBRARY(RPMIO_LIBRARY NAMES rpmio)
+IF ( RPMIO_LIBRARY )
+SET( RPMDB_LIBRARY ${RPMIO_LIBRARY} ${RPMDB_LIBRARY} )
+ENDIF ( RPMIO_LIBRARY )
+IF ( FEDORA )
+FIND_LIBRARY(DB_LIBRARY NAMES db)
+IF ( DB_LIBRARY )
+SET( RPMDB_LIBRARY ${DB_LIBRARY} ${RPMDB_LIBRARY} )
+ENDIF ( DB_LIBRARY )
+ENDIF ( FEDORA )
 ENDIF ( NOT DEBIAN )
 
 SET( PACKAGE "satsolver" )
index 5f5f7d8dca359475f8cf6e1ea5312d84258f1ab2..1cb20541dc485861d38fb8617a829acb6170f191 100644 (file)
@@ -39,6 +39,8 @@
 #include <sys/wait.h>
 #include <time.h>
 #include <sys/time.h>
+#include <sys/dir.h>
+#include <sys/stat.h>
 
 #include <sys/socket.h>
 #include <netdb.h>