rename shared object to the less clumsy xconv.so
This commit is contained in:
parent
1eabf668a2
commit
cfbda3481f
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.so
|
||||
*.o
|
6
Makefile
6
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 " $<"
|
||||
|
2
xconv.c
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user