Skip to content

Commit

Permalink
restore back
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Nov 24, 2024
1 parent 7ff4bcf commit d022786
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
28 changes: 20 additions & 8 deletions lib/libsqlite3/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@

PACKAGE=lib${LIB}
PRIVATELIB= yes
LIB= sqlite3
SHLIB_MAJOR?= 0
LIBADD+= pthread
LIB= sqlite3
SHLIB_MAJOR= 1
LIBADD+= pthread z

SRCS= sqlite3.c
INCS= sqlite3.h sqlite3ext.h

SQLITE= ${SRCTOP}/contrib/sqlite3
.PATH: ${SQLITE}

WARNS?= 3
WARNS?= 2
CFLAGS+= -I${SQLITE} \
-DUSE_PREAD=1 \
-DSTDC_HEADERS=1 \
Expand All @@ -31,8 +29,22 @@ CFLAGS+= -I${SQLITE} \
-DHAVE_DECL_STRERROR_R=1 \
-DHAVE_STRERROR_R=1 \
-DHAVE_POSIX_FALLOCATE=1 \
-D_REENTRANT=1 \
-DSQLITE_THREADSAFE=1
-D_REENTRANT=1 -DREENTRANT=1 \
-DSQLITE_THREADSAFE=1 \
-DSQLITE_OS_UNIX=1 \
-DSQLITE_ENABLE_RTREE=1 \
-DSQLITE_ENABLE_FTS3 \
-DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_FTS4 \
-DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_GEOPOLY \
-DSQLITE_HAVE_ZLIB -DSQLITE_ENABLE_MATH_FUNCTIONS

MK_MAN= no

.if !defined(COMPAT_32BIT)
afterinstall:
${INSTALL} ${SHLINSTALLFLAGS} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${_INSTALLFLAGS} ${SQLITE}/sqlite3.pc ${DESTDIR}/usr/libdata/pkgconfig/sqlite3.pc
.endif

.if ${MACHINE_ARCH} == "powerpc64le"
CFLAGS+= -DSQLITE_BYTEORDER=1234
Expand Down
2 changes: 1 addition & 1 deletion share/mk/src.libnames.mk
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ _DP_archive+= crypto
_DP_archive+= md
.endif
.endif
_DP_sqlite3= pthread
_DP_sqlite3= pthread z
_DP_ssl= crypto
_DP_ssh= crypto crypt z
.if ${MK_LDNS} != "no"
Expand Down

0 comments on commit d022786

Please sign in to comment.