]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Changes to the Makefile.in so that MinGW users can build a DLL. Ticket #1955. (CVS...
authordrh <drh@noemail.net>
Sat, 2 Sep 2006 22:14:11 +0000 (22:14 +0000)
committerdrh <drh@noemail.net>
Sat, 2 Sep 2006 22:14:11 +0000 (22:14 +0000)
FossilOrigin-Name: 7279ddd08444d54712f738d997c5d11f6af064c1

Makefile.in
manifest
manifest.uuid

index f13555a6795ffcd8c19975f6f79c4411ab6f6ff3..70c9a025b44e5ed4892d712ccdf27e197e5fe229 100644 (file)
@@ -665,7 +665,25 @@ clean:
        rm -f testfixture$(TEXE) test.db
        rm -rf doc
        rm -f common.tcl
-       rm -f sqlite3.dll sqlite3.lib
+       rm -f sqlite3.dll sqlite3.lib sqlite3.def
 
 distclean:     clean
        rm -f config.log config.status libtool Makefile config.h
+
+#
+# Windows section
+#
+dll: sqlite3.dll
+
+REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
+
+$(REAL_LIBOBJ): $(LIBOBJ)
+
+sqlite3.def: $(REAL_LIBOBJ)
+       echo 'EXPORTS' >sqlite3.def
+       nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
+               | sed 's/^.* _//' >>sqlite3.def
+
+sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
+       $(TCC) -shared -o sqlite3.dll sqlite3.def \
+               -Wl,"--strip-all" $(REAL_LIBOBJ)
index db5d90aeb20b471da9e7e970623921b8894d8069..b0ab72c042ce4b8e379afe800d391e74331029b3 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,6 +1,6 @@
-C Add\sa\sTRACE\smacro\sto\sthe\sFTS1\smodule\sfor\stroubleshooting.\s\sTurned\soff\sby\ndefault.\s(CVS\s3388)
-D 2006-09-02T20:58:26
-F Makefile.in 659b63368cfbb95a224c9d2f2a9897802d96a4ea
+C Changes\sto\sthe\sMakefile.in\sso\sthat\sMinGW\susers\scan\sbuild\sa\sDLL.\s\sTicket\s#1955.\s(CVS\s3389)
+D 2006-09-02T22:14:12
+F Makefile.in cabd42d34340f49260bc2a7668c38eba8d4cfd99
 F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
 F VERSION ef6abd4b2095b0f378b428ed251e16f0213fcf3f
@@ -395,7 +395,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
 F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
-P 61148f4c36255c4ed3552f888fa75252b300589d
-R 047544ba02c59392188ec6883b4588cb
+P d4923e98c66ae03d899f633e5e309471f5695abb
+R d829b8762af2a72f56db333e1db29bd2
 U drh
-Z ad8f2586cf13efa1b155ad298401ac97
+Z b65c57dac37a62be54424983aa5a8361
index 85f1c86e69485b9d55cb92f8d7492ce3da3e112f..fb5be9f483bd9bb6c45e4fce959b9d64e506e53f 100644 (file)
@@ -1 +1 @@
-d4923e98c66ae03d899f633e5e309471f5695abb
\ No newline at end of file
+7279ddd08444d54712f738d997c5d11f6af064c1
\ No newline at end of file