rename shared object to the less clumsy xconv.so

This commit is contained in:
HummyPkg 2017-03-13 09:04:35 +00:00
parent 1eabf668a2
commit cfbda3481f
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.so
*.o

View File

@ -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 " $<"

View File

@ -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);