Make the normal sqlite3 API externally visible (until we switch to tdbc...) --- vendor/tcl/pkgs/sqlite3.50.4/Makefile.in.orig 2024-03-01 00:32:11 +++ vendor/tcl/pkgs/sqlite3.50.4/Makefile.in 2024-03-01 00:26:48 @@ -155,7 +155,7 @@ INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ -I. -I$(srcdir)/.. #INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@ -PKG_CFLAGS = @PKG_CFLAGS@ -DSQLITE_EXTERN= +PKG_CFLAGS = @PKG_CFLAGS@ # TCL_DEFS is not strictly need here, but if you remove it, then you # must make sure that configure.ac checks for the necessary components --- vendor/tcl/pkgs/sqlite3.50.4/configure.orig 2024-12-10 07:49:12 +++ vendor/tcl/pkgs/sqlite3.50.4/configure 2025-01-06 01:48:04 @@ -5775,7 +5775,7 @@ else - PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_API=MODULE_SCOPE" + PKG_CFLAGS="$PKG_CFLAGS" fi @@ -7817,7 +7817,7 @@ esac fi # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS - SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' + SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT} -install_name @executable_path/../lib/$(PKG_DIR)/$(PKG_LIB_FILE)' # TEA specific: link shlib with current and compatibility version flags vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"