[libdbi-drivers] fix "ld: cannot find -lsqlite"

Jan Pacner jpacner at fedoraproject.org
Thu Jan 23 11:02:10 UTC 2014


commit fbc116b734ac6768909bd958c8c45a4df1bc4a35
Author: Jan Pacner <jpacner at redhat.com>
Date:   Thu Jan 23 12:02:27 2014 +0100

    fix "ld: cannot find -lsqlite"

 libdbi-drivers.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libdbi-drivers.spec b/libdbi-drivers.spec
index a983822..93057a5 100644
--- a/libdbi-drivers.spec
+++ b/libdbi-drivers.spec
@@ -66,6 +66,8 @@ sed -i -r 's|<(mysql\.h)>|<mysql/\1>|' drivers/mysql/dbd_mysql.c
 autoconf
 
 %build
+LDFLAGS="$LDFLAGS $(pkg-config --libs sqlite3)"
+export LDFLAGS
 # configure is broken, must pass both --with-*sql-libdir _AND_
 # --with-*sql-incdir in order for --with-*sql-libdir to be used
 %configure --with-mysql --with-pgsql --with-sqlite3 \


More information about the scm-commits mailing list