slackbuilds_ponce/games/xmoto/patches/sqlite3.diff
2010-05-12 17:39:42 +02:00

30 lines
949 B
Diff

diff -Naur xmoto-0.5.0.orig/configure xmoto-0.5.0/configure
--- xmoto-0.5.0.orig/configure 2008-11-23 09:33:21.000000000 +0000
+++ xmoto-0.5.0/configure 2009-03-30 20:52:48.000000000 +0000
@@ -5104,7 +5104,7 @@
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
- SQLITE_LIBS=-lsqlite3
+ SQLITE_LIBS=`pkg-config --static --libs sqlite3`
else
{ { echo "$as_me:$LINENO: error: \"sqlite3 required\"" >&5
echo "$as_me: error: \"sqlite3 required\"" >&2;}
@@ -5120,7 +5120,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsqlite3 $LIBS"
+LIBS="`pkg-config --static --libs sqlite3` $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5174,7 +5174,7 @@
#define HAVE_LIBSQLITE3 1
_ACEOF
- LIBS="-lsqlite3 $LIBS"
+ LIBS="`pkg-config --static --libs sqlite3` $LIBS"
else
{ { echo "$as_me:$LINENO: error: \"Linking against sqlite3 failed.\"" >&5