From: Michael Schroeder Date: Tue, 8 Jun 2010 15:55:22 +0000 (+0200) Subject: - link with all needed libraries, by Lorenzo Villani X-Git-Tag: BASE-SuSE-Code-12_1-Branch~158^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64eb1c95abd71d930ed69b9deec18bdc2b68e053;p=thirdparty%2Flibsolv.git - link with all needed libraries, by Lorenzo Villani --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a5fe2590..24234db3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" ) diff --git a/examples/solv.c b/examples/solv.c index 5f5f7d8d..1cb20541 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -39,6 +39,8 @@ #include #include #include +#include +#include #include #include