openbsd-ports/databases/sqlite3/patches/patch-Makefile_in
simon eebae1b0c1 update to version 3.6.4, see http://www.sqlite.org/35to36.html and
http://www.sqlite.org/changes.html for the details

tcl adjustments and bulk build testing by bernd@, thanks!

ok bernd@, steven@, martynas@
2008-10-27 17:14:18 +00:00

74 lines
2.2 KiB
Plaintext

$OpenBSD: patch-Makefile_in,v 1.9 2008/10/27 17:14:18 simon Exp $
--- Makefile.in.orig Tue Oct 14 20:07:37 2008
+++ Makefile.in Sun Oct 26 10:19:40 2008
@@ -101,7 +101,7 @@ TEXE = @TARGET_EXEEXT@
#
HAVE_TCL = @HAVE_TCL@
-# This is the command to use for tclsh - normally just "tclsh", but we may
+# This is the command to use for tclsh8.48.4 - normally just "tclsh8.48.4", but we may
# know the specific version we want to use
#
TCLSH_CMD = @TCLSH_CMD@
@@ -167,11 +167,11 @@ OBJS0 = alter.lo analyze.lo attach.lo auth.lo bitvec.l
table.lo tokenize.lo trigger.lo update.lo \
util.lo vacuum.lo \
vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbefifo.lo vdbemem.lo \
- walker.lo where.lo utf.lo vtab.lo
+ walker.lo where.lo utf.lo vtab.lo pthread_stub.lo
# Object files for the amalgamation.
#
-OBJS1 = sqlite3.lo
+OBJS1 = sqlite3.lo pthread_stub.lo
# Determine the real value of LIBOBJ based on the 'configure' script
#
@@ -262,7 +262,8 @@ SRC = \
$(TOP)/src/vdbeInt.h \
$(TOP)/src/vtab.c \
$(TOP)/src/walker.c \
- $(TOP)/src/where.c
+ $(TOP)/src/where.c \
+ $(TOP)/src/pthread_stub.c
# Generated source code files
#
@@ -419,7 +420,7 @@ HDR += \
# hidden when the library is built via the amalgamation).
#
TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
-TESTFIXTURE_SRC1 = sqlite3.c
+TESTFIXTURE_SRC1 = sqlite3.c $(TOP)/src/pthread_stub.c
TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
@@ -444,7 +445,7 @@ libsqlite3.la: $(LIBOBJ)
libtclsqlite3.la: tclsqlite.lo libsqlite3.la
$(LTLINK) -o $@ tclsqlite.lo \
- libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
+ libsqlite3.la -L./.libs @TCL_STUB_LIB_SPEC@ $(TLIBS) \
-rpath "$(libdir)/sqlite" \
-version-info "8:6:8"
@@ -481,6 +482,9 @@ lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
sqlite3.lo: sqlite3.c
$(LTCOMPILE) -c sqlite3.c
+pthread_stub.lo: $(TOP)/src/pthread_stub.c
+ $(LTCOMPILE) -c $(TOP)/src/pthread_stub.c
+
# Rules to build individual files
#
alter.lo: $(TOP)/src/alter.c $(HDR)
@@ -768,6 +772,8 @@ clean:
distclean: clean
rm -f config.log config.status libtool Makefile sqlite3.pc
+
+.PHONY: test
#
# Windows section