- 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 a5fe259..24234db 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 5f5f7d8..1cb2054 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>