sqlite.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Index: Makefile.in
  2. --- Makefile.in.orig 2008-04-14 02:49:45 +0200
  3. +++ Makefile.in 2008-04-17 08:24:02 +0200
  4. @@ -167,6 +167,24 @@
  5. LIBOBJ = $(OBJS$(USE_AMALGAMATION))
  6. +# FTS1 support
  7. +ifdef FTS1
  8. +TCC += -DSQLITE_ENABLE_FTS1
  9. +LIBOBJ += fts1.lo fts1_hash.lo fts1_porter.lo fts1_tokenizer1.lo
  10. +endif
  11. +
  12. +# FTS2 support
  13. +ifdef FTS2
  14. +TCC += -DSQLITE_ENABLE_FTS2
  15. +LIBOBJ += fts2.lo fts2_hash.lo fts2_porter.lo fts2_tokenizer1.lo
  16. +endif
  17. +
  18. +# FTS3 support
  19. +ifdef FTS3
  20. +TCC += -DSQLITE_ENABLE_FTS3
  21. +LIBOBJ += fts3.lo fts3_hash.lo fts3_porter.lo fts3_tokenizer1.lo
  22. +endif
  23. +
  24. # All of the source code files.
  25. #
  26. SRC = \
  27. @@ -732,3 +750,31 @@
  28. sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
  29. $(TCC) -shared -o $@ sqlite3.def \
  30. -Wl,"--strip-all" $(REAL_LIBOBJ)
  31. +
  32. +fts1.lo: $(TOP)/ext/fts1/fts1.c $(HDR)
  33. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1.c
  34. +fts1_hash.lo: $(TOP)/ext/fts1/fts1_hash.c $(HDR)
  35. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_hash.c
  36. +fts1_porter.lo: $(TOP)/ext/fts1/fts1_porter.c $(HDR)
  37. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_porter.c
  38. +fts1_tokenizer1.lo: $(TOP)/ext/fts1/fts1_tokenizer1.c $(HDR)
  39. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_tokenizer1.c
  40. +
  41. +fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR)
  42. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2.c
  43. +fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR)
  44. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_hash.c
  45. +fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR)
  46. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_porter.c
  47. +fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR)
  48. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_tokenizer1.c
  49. +
  50. +fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR)
  51. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3.c
  52. +fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR)
  53. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_hash.c
  54. +fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR)
  55. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_porter.c
  56. +fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR)
  57. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer1.c
  58. +
  59. Index: sqlite3.pc.in
  60. --- sqlite3.pc.in.orig 2008-03-20 13:06:04 +0100
  61. +++ sqlite3.pc.in 2008-04-17 08:24:32 +0200
  62. @@ -8,6 +8,5 @@
  63. Name: SQLite
  64. Description: SQL database engine
  65. Version: @VERSION@
  66. -Libs: -L${libdir} -lsqlite3
  67. -Libs.private: @LIBS@
  68. +Libs: -L${libdir} -lsqlite3 @LIBS@
  69. Cflags: -I${includedir}