summaryrefslogtreecommitdiff
path: root/games/xmoto/patches/sqlite3.diff
blob: 8d47a140f7ff90ede82e4885d65a83b96ea58706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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