From cfbda3481fa8e47c8958603771797f3f0b0ed4cc Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Mon, 13 Mar 2017 09:04:35 +0000 Subject: [PATCH] rename shared object to the less clumsy xconv.so --- .gitignore | 2 ++ Makefile | 6 +++--- xconv.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cc78368 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.so +*.o diff --git a/Makefile b/Makefile index 7564ad4..12ec771 100644 --- a/Makefile +++ b/Makefile @@ -8,15 +8,15 @@ DEFS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -D_G all: lib lib: - gcc ${CFLAGS} ${DEFS} -shared -ldl -lpthread -fPIC xconv.c -o libqxconv.so -lxconv + gcc ${CFLAGS} ${DEFS} -shared -ldl -lpthread -fPIC xconv.c -o libxconv.so -lxconv clean: rm -f core *.o *.so install: all - #strip libxconv.so + strip libxconv.so mkdir -p /mod/lib/sql - cp libqxconv.so /mod/lib/sql/libqxconv.so + cp libxconv.so /mod/lib/sql/xconv.so .c.o: @echo " $<" diff --git a/xconv.c b/xconv.c index 3740546..b71e8da 100644 --- a/xconv.c +++ b/xconv.c @@ -37,7 +37,7 @@ sqlite_xconv(sqlite3_context *c, int argc, sqlite3_value **argv) sqlite3_result_text(c, dst, -1, free); } -int sqlite3_qxconv_init(sqlite3 *db, char **err, +int sqlite3_xconv_init(sqlite3 *db, char **err, const sqlite3_api_routines *api) { SQLITE_EXTENSION_INIT2(api);