source.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --- src/backend/Makefile.orig 2024-06-18 17:23:43.106798000 +0300
  2. +++ src/backend/Makefile 2024-07-02 18:19:19.003583000 +0300
  3. @@ -23,6 +23,8 @@
  4. statistics storage tcop tsearch utils $(top_builddir)/src/timezone \
  5. jit
  6. +SUBDIRS := $(filter-out main,$(SUBDIRS))
  7. +
  8. include $(srcdir)/common.mk
  9. # As of 1/2010:
  10. @@ -56,14 +58,14 @@
  11. ##########################################################################
  12. -all: submake-libpgport submake-catalog-headers submake-utils-headers postgres $(POSTGRES_IMP)
  13. +all: submake-libpgport submake-catalog-headers submake-utils-headers postgres.a $(POSTGRES_IMP)
  14. ifneq ($(PORTNAME), cygwin)
  15. ifneq ($(PORTNAME), win32)
  16. ifneq ($(PORTNAME), aix)
  17. -postgres: $(OBJS)
  18. - $(CC) $(CFLAGS) $(call expand_subsys,$^) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $(LIBS) -o $@
  19. +postgres.a: $(OBJS)
  20. + $(AR) $(AROPT) $@ $(call expand_subsys,$^)
  21. endif
  22. endif
  23. @@ -284,7 +286,7 @@
  24. ##########################################################################
  25. clean:
  26. - rm -f $(LOCALOBJS) postgres$(X) $(POSTGRES_IMP)
  27. + rm -f $(LOCALOBJS) postgres$(X) postgres.a $(POSTGRES_IMP)
  28. ifeq ($(PORTNAME), cygwin)
  29. rm -f postgres.dll libpostgres.a
  30. endif
  31. --- src/common/Makefile.orig 2024-07-02 23:36:19.378859000 +0300
  32. +++ src/common/Makefile 2024-07-02 23:38:39.066137000 +0300
  33. @@ -116,7 +116,7 @@
  34. GEN_KEYWORDLIST = $(PERL) -I $(TOOLSDIR) $(TOOLSDIR)/gen_keywordlist.pl
  35. GEN_KEYWORDLIST_DEPS = $(TOOLSDIR)/gen_keywordlist.pl $(TOOLSDIR)/PerfectHash.pm
  36. -all: libpgcommon.a libpgcommon_shlib.a libpgcommon_srv.a
  37. +all: libpgcommon_srv.a
  38. distprep: kwlist_d.h
  39. --- src/port/Makefile.orig 2024-07-03 01:34:30.900355000 +0300
  40. +++ src/port/Makefile 2024-07-03 01:35:00.060786000 +0300
  41. @@ -67,7 +67,7 @@
  42. OBJS_SHLIB = $(OBJS:%.o=%_shlib.o)
  43. OBJS_SRV = $(OBJS:%.o=%_srv.o)
  44. -all: libpgport.a libpgport_shlib.a libpgport_srv.a
  45. +all: libpgport_srv.a
  46. # libpgport is needed by some contrib
  47. install: all installdirs
  48. --- src/timezone/Makefile.orig 2024-07-03 17:54:39.334522000 +0300
  49. +++ src/timezone/Makefile 2024-07-03 17:54:52.022243000 +0300
  50. @@ -40,7 +40,7 @@
  51. include $(top_srcdir)/src/backend/common.mk
  52. ifeq (,$(with_system_tzdata))
  53. -all: zic
  54. +all:
  55. endif
  56. # We could do this test in the action section: