[libdbi-drivers] fix "ld: cannot find -lsqlite" - try No. 2

Jan Pacner jpacner at fedoraproject.org
Thu Jan 23 12:25:37 UTC 2014


commit 90b27e259d2fe9718b1b9a34c2da69fa97b14f17
Author: Jan Pacner <jpacner at redhat.com>
Date:   Thu Jan 23 13:25:53 2014 +0100

    fix "ld: cannot find -lsqlite" - try No. 2

 libdbi-drivers.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libdbi-drivers.spec b/libdbi-drivers.spec
index 93057a5..2443ac3 100644
--- a/libdbi-drivers.spec
+++ b/libdbi-drivers.spec
@@ -66,8 +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
+LIBS="$(pkg-config --libs-only-l sqlite3)"
+export LIBS
 # 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