sqlite.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Index: Makefile.in
  2. --- Makefile.in.orig 2009-05-05 05:39:48 +0200
  3. +++ Makefile.in 2009-05-19 19:23:12 +0200
  4. @@ -187,6 +187,17 @@
  5. USE_AMALGAMATION = @USE_AMALGAMATION@
  6. LIBOBJ = $(OBJS$(USE_AMALGAMATION))
  7. +# FTS3 support
  8. +ifdef FTS3
  9. +TCC += -DSQLITE_ENABLE_FTS3 -I$(TOP)/ext/fts3
  10. +LIBOBJ += fts3.lo fts3_hash.lo fts3_expr.lo fts3_porter.lo fts3_icu.lo fts3_tokenizer1.lo fts3_tokenizer.lo
  11. +endif
  12. +
  13. +# RTREE support
  14. +ifdef RTREE
  15. +TCC += -DSQLITE_ENABLE_RTREE -I$(TOP)/ext/rtree
  16. +LIBOBJ += rtree.lo
  17. +endif
  18. # All of the source code files.
  19. #
  20. @@ -477,6 +488,24 @@
  21. -o $@ $(TOP)/src/shell.c libsqlite3.la \
  22. $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
  23. +fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR)
  24. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3.c
  25. +fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR)
  26. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_hash.c
  27. +fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR)
  28. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_expr.c
  29. +fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR)
  30. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_icu.c
  31. +fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR)
  32. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_porter.c
  33. +fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR)
  34. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer.c
  35. +fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR)
  36. + $(LTCOMPILE) -c $(TOP)/ext/fts3/fts3_tokenizer1.c
  37. +
  38. +rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR)
  39. + $(LTCOMPILE) -c $(TOP)/ext/rtree/rtree.c
  40. +
  41. # This target creates a directory named "tsrc" and fills it with
  42. # copies of all of the C source code and header files needed to
  43. # build on the target system. Some of the C source code and header
  44. Index: configure
  45. --- configure.orig 2009-05-18 18:22:42 +0200
  46. +++ configure 2009-05-19 19:23:12 +0200
  47. @@ -6012,11 +6012,7 @@
  48. if $ac_preproc_ok; then
  49. :
  50. else
  51. - { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  52. -See \`config.log' for more details." >&5
  53. -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  54. -See \`config.log' for more details." >&2;}
  55. - { (exit 1); exit 1; }; }
  56. + :
  57. fi
  58. ac_ext=c
  59. Index: sqlite3.pc.in
  60. --- sqlite3.pc.in.orig 2009-05-05 05:39:51 +0200
  61. +++ sqlite3.pc.in 2009-05-19 19:23:12 +0200
  62. @@ -8,6 +8,5 @@
  63. Name: SQLite
  64. Description: SQL database engine
  65. Version: @RELEASE@
  66. -Libs: -L${libdir} -lsqlite3
  67. -Libs.private: @LIBS@
  68. +Libs: -L${libdir} -lsqlite3 @LIBS@
  69. Cflags: -I${includedir}