diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-02-14 00:28:55 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-02-18 09:35:17 +0100 |
commit | 47253d4f4a66778e4661ef1412e7ef95a5cadee2 (patch) | |
tree | 6849516eb0032e76913b85a21462248d6c31ba42 /patches/sqlite-3.6.22 | |
parent | 06d1d2b1c2bfc06cb3f386b7879f8e498eb75068 (diff) | |
download | ptxdist-47253d4f4a66778e4661ef1412e7ef95a5cadee2.tar.gz ptxdist-47253d4f4a66778e4661ef1412e7ef95a5cadee2.tar.xz |
[sqlite] fix libdl linking problem
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'patches/sqlite-3.6.22')
-rw-r--r-- | patches/sqlite-3.6.22/0001-configure.ac-link-against-libdl-if-building-load-ext.patch | 59 | ||||
l--------- | patches/sqlite-3.6.22/autogen.sh | 1 | ||||
-rw-r--r-- | patches/sqlite-3.6.22/series | 1 |
3 files changed, 61 insertions, 0 deletions
diff --git a/patches/sqlite-3.6.22/0001-configure.ac-link-against-libdl-if-building-load-ext.patch b/patches/sqlite-3.6.22/0001-configure.ac-link-against-libdl-if-building-load-ext.patch new file mode 100644 index 000000000..09be2a380 --- /dev/null +++ b/patches/sqlite-3.6.22/0001-configure.ac-link-against-libdl-if-building-load-ext.patch @@ -0,0 +1,59 @@ +From 48c967d9af0c58482c8715da22f6ccdefb3f2904 Mon Sep 17 00:00:00 2001 +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Sun, 14 Feb 2010 00:21:07 +0100 +Subject: [PATCH] configure.ac: link against libdl if building load extension + +From: +http://patch-tracker.debian.org/package/sqlite3/3.6.22-1 + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + configure.ac | 32 ++++++++++++++++++++++++++++++++ + 1 files changed, 32 insertions(+), 0 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 441cf78..a8e1be4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -233,6 +233,38 @@ fi + AC_SUBST(BUILD_CC) + + ########## ++# Do we want to support load_extension()? ++# ++AC_ARG_ENABLE(load-extension, ++AC_HELP_STRING([--enable-load-extension], ++ [Include SQL functions for loading extension libraries]),, ++ enable_load_extension=auto) ++ ++if test "x$enable_load_extension" = xyes || ++ test "x$enable_load_extension" = xauto; then ++ ++ can_load_extension=yes ++ # libtool will already have looked for <dlfcn.h> ++ if test $ac_cv_header_dlfcn_h = no; then ++ can_load_extension=no ++ else ++ AC_SEARCH_LIBS(dlopen, dl, , [can_load_extension=no]) ++ fi ++elif test "x$enable_load_extension" = xno; then ++ can_load_extension=no ++else ++ AC_MSG_ERROR([invalid argument to --enable-load-extension]) ++fi ++ ++if test $can_load_extension = no; then ++ if test "x$enable_load_extension" = xyes; then ++ AC_MSG_ERROR([<dlfcn.h> routines missing, load_extension() not supported]) ++ fi ++ AC_DEFINE(SQLITE_OMIT_LOAD_EXTENSION, 1, ++ [Define if the load_extension() sql function should be omitted.]) ++fi ++ ++########## + # Do we want to support multithreaded use of sqlite + # + AC_ARG_ENABLE(threadsafe, +-- +1.6.6.2 + diff --git a/patches/sqlite-3.6.22/autogen.sh b/patches/sqlite-3.6.22/autogen.sh new file mode 120000 index 000000000..9f8a4cb7d --- /dev/null +++ b/patches/sqlite-3.6.22/autogen.sh @@ -0,0 +1 @@ +../autogen.sh
\ No newline at end of file diff --git a/patches/sqlite-3.6.22/series b/patches/sqlite-3.6.22/series new file mode 100644 index 000000000..adf7c6ef4 --- /dev/null +++ b/patches/sqlite-3.6.22/series @@ -0,0 +1 @@ +0001-configure.ac-link-against-libdl-if-building-load-ext.patch |