PageRenderTime 27ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/dev-vcs/fossil/files/20100318142033-gentoo.patch

https://github.com/mikehale/portage
Patch | 29 lines | 27 code | 2 blank | 0 comment | 0 complexity | 6fbd0efaecaf32765c12901feca6f4e0 MD5 | raw file
  1. diff --git a/Makefile b/Makefile
  2. index 18d5ea5..962e295 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -40,7 +40,8 @@ TCC += -DFOSSIL_ENABLE_SSL
  6. # so that we can build a static executable that will run in a
  7. # chroot jail.
  8. #
  9. -LIB = -lz $(LDFLAGS)
  10. +
  11. +LIB = -lz -lsqlite3
  12. # If you're on OpenSolaris:
  13. # LIB += lsocket
  14. # Solaris 10 needs:
  15. diff --git a/src/main.mk b/src/main.mk
  16. index 470bedd..a8bbc38 100644
  17. --- a/src/main.mk
  18. +++ b/src/main.mk
  19. @@ -266,8 +266,8 @@ VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
  20. awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' $(SRCDIR)/../manifest.uuid >>VERSION.h
  21. awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n", substr($$2,1,10),substr($$2,12)}' $(SRCDIR)/../manifest >>VERSION.h
  22. -$(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
  23. - $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
  24. +$(APPNAME): headers $(OBJ) $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
  25. + $(TCC) $(LDFLAGS) -o $(APPNAME) $(OBJ) $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
  26. # This rule prevents make from using its default rules to try build
  27. # an executable named "manifest" out of the file named "manifest.c"