/ Check-in [e269f6e9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updates to build scripts. Added scripts for building FTS2 shared libraries. (CVS 4171)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e269f6e9f6273210259a488c356f4996d75c6436
User & Date: drh 2007-07-20 13:42:26
Context
2007-07-20
20:25
Work around an AFP file system byte-range locking error caused by opening and closing a second file descriptor on the database file as RDWR which clears the exclusive byte-range lock and results in an fcntl error when the AFP locking code attempts to clear it afterwards. This error is caused by the test harness and isn't a flaw in the sqlite or its implementation of AFP file locking. (CVS 4172) check-in: b2ba3e81 user: aswift tags: trunk
13:42
Updates to build scripts. Added scripts for building FTS2 shared libraries. (CVS 4171) check-in: e269f6e9 user: drh tags: trunk
10:56
Version 3.4.1 (CVS 4170) check-in: 81a4dd07 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to main.mk.

   137    137     $(TOP)/ext/fts1/fts1_tokenizer.h \
   138    138     $(TOP)/ext/fts1/fts1_tokenizer1.c
   139    139   SRC += \
   140    140     $(TOP)/ext/fts2/fts2.c \
   141    141     $(TOP)/ext/fts2/fts2.h \
   142    142     $(TOP)/ext/fts2/fts2_hash.c \
   143    143     $(TOP)/ext/fts2/fts2_hash.h \
          144  +  $(TOP)/ext/fts2/fts2_icu.c \
   144    145     $(TOP)/ext/fts2/fts2_porter.c \
   145    146     $(TOP)/ext/fts2/fts2_tokenizer.h \
          147  +  $(TOP)/ext/fts2/fts2_tokenizer.c \
   146    148     $(TOP)/ext/fts2/fts2_tokenizer1.c
   147    149   SRC += \
   148    150     $(TOP)/ext/icu/icu.c
   149    151   
   150    152   
   151    153   # Generated source code files
   152    154   #
................................................................................
   269    271   	rm tsrc/sqlite.h.in tsrc/parse.y
   270    272   
   271    273   sqlite3.c:	target_source $(TOP)/tool/mksqlite3c.tcl
   272    274   	tclsh $(TOP)/tool/mksqlite3c.tcl
   273    275   	cp sqlite3.c tclsqlite3.c
   274    276   	cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
   275    277   	tclsh $(TOP)/tool/mksqlite3internalh.tcl
          278  +
          279  +fts2amal.c:	target_source $(TOP)/ext/fts2/mkfts2amal.tcl
          280  +	tclsh $(TOP)/ext/fts2/mkfts2amal.tcl
   276    281   
   277    282   # Rules to build the LEMON compiler generator
   278    283   #
   279    284   lemon:	$(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
   280    285   	$(BCC) -o lemon $(TOP)/tool/lemon.c
   281    286   	cp $(TOP)/tool/lempar.c .
   282    287   

Added mkextu.sh.

            1  +#!/bin/sh
            2  +#
            3  +# This script is used to compile SQLite into a shared library on Linux.
            4  +#
            5  +# Two separate shared libraries are generated.  "sqlite3.so" is the core
            6  +# library.  "tclsqlite3.so" contains the TCL bindings and is the
            7  +# library that is loaded into TCL in order to run SQLite.
            8  +#
            9  +CFLAGS=-O2 -Wall
           10  +make fts2amal.c
           11  +echo gcc $CFLAGS -shared fts2amal.c -o fts2.so
           12  +gcc $CFLAGS -shared fts2amal.c -o fts2.so
           13  +strip fts2.so

Added mkextw.sh.

            1  +#!/bin/sh
            2  +#
            3  +# This script is used to compile SQLite extensions into DLLs.
            4  +#
            5  +make fts2amal.c
            6  +PATH=$PATH:/opt/mingw/bin
            7  +OPTS='-DTHREADSAFE=1 -DBUILD_sqlite=1 -DOS_WIN=1'
            8  +CC="i386-mingw32msvc-gcc -O2 $OPTS -Itsrc"
            9  +NM="i386-mingw32msvc-nm"
           10  +CMD="$CC -c fts2amal.c"
           11  +echo $CMD
           12  +$CMD
           13  +echo 'EXPORTS' >fts2.def
           14  +echo 'sqlite3_extension_init' >>fts2.def
           15  +i386-mingw32msvc-dllwrap \
           16  +     --def fts2.def -v --export-all \
           17  +     --driver-name i386-mingw32msvc-gcc \
           18  +     --dlltool-name i386-mingw32msvc-dlltool \
           19  +     --as i386-mingw32msvc-as \
           20  +     --target i386-mingw32 \
           21  +     -dllname fts2.dll -lmsvcrt fts2amal.o
           22  +zip fts2dll.zip fts2.dll fts2.def