sqlite.patch 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Index: Makefile.in
  2. --- Makefile.in.orig 2009-01-15 15:01:45 +0100
  3. +++ Makefile.in 2009-01-17 11:43:12 +0100
  4. @@ -184,6 +184,30 @@
  5. LIBOBJ = $(OBJS$(USE_AMALGAMATION))
  6. +# FTS1 support
  7. +ifdef FTS1
  8. +TCC += -DSQLITE_ENABLE_FTS1 -I$(TOP)/ext/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 -I$(TOP)/ext/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 -I$(TOP)/ext/fts3
  21. +LIBOBJ += fts3.lo fts3_hash.lo fts3_porter.lo fts3_icu.lo fts3_tokenizer1.lo fts3_tokenizer.lo
  22. +endif
  23. +
  24. +# RTREE support
  25. +ifdef RTREE
  26. +TCC += -DSQLITE_ENABLE_RTREE -I$(TOP)/ext/rtree
  27. +LIBOBJ += rtree.lo
  28. +endif
  29. +
  30. # All of the source code files.
  31. #
  32. SRC = \
  33. @@ -801,3 +825,38 @@
  34. sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
  35. $(TCC) -shared -o $@ sqlite3.def \
  36. -Wl,"--strip-all" $(REAL_LIBOBJ)
  37. +
  38. +fts1.lo: $(TOP)/ext/fts1/fts1.c $(HDR)
  39. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1.c
  40. +fts1_hash.lo: $(TOP)/ext/fts1/fts1_hash.c $(HDR)
  41. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_hash.c
  42. +fts1_porter.lo: $(TOP)/ext/fts1/fts1_porter.c $(HDR)
  43. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_porter.c
  44. +fts1_tokenizer1.lo: $(TOP)/ext/fts1/fts1_tokenizer1.c $(HDR)
  45. + $(LTCOMPILE) -c $(TOP)/ext/fts1/fts1_tokenizer1.c
  46. +
  47. +fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR)
  48. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2.c
  49. +fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR)
  50. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_hash.c
  51. +fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR)
  52. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_porter.c
  53. +fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR)
  54. + $(LTCOMPILE) -c $(TOP)/ext/fts2/fts2_tokenizer1.c
  55. +
  56. +fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR)
  57. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3.c
  58. +fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR)
  59. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_hash.c
  60. +fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR)
  61. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_icu.c
  62. +fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR)
  63. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_porter.c
  64. +fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR)
  65. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer.c
  66. +fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR)
  67. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer1.c
  68. +
  69. +rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR)
  70. + $(LTCOMPILE) -c $(TOP)/ext/rtree/rtree.c
  71. +
  72. Index: sqlite3.pc.in
  73. --- sqlite3.pc.in.orig 2009-01-15 15:01:45 +0100
  74. +++ sqlite3.pc.in 2009-01-17 11:43:12 +0100
  75. @@ -8,6 +8,5 @@
  76. Name: SQLite
  77. Description: SQL database engine
  78. Version: @RELEASE@
  79. -Libs: -L${libdir} -lsqlite3
  80. -Libs.private: @LIBS@
  81. +Libs: -L${libdir} -lsqlite3 @LIBS@
  82. Cflags: -I${includedir}