]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql-link.patch
- updated to 13.14
[packages/postgresql.git] / postgresql-link.patch
1 diff -urNp -x '*.orig' postgresql-13.6.org/configure.in postgresql-13.6/configure.in
2 --- postgresql-13.6.org/configure.in    2022-04-04 17:57:53.706326633 +0200
3 +++ postgresql-13.6/configure.in        2022-04-04 17:57:57.921336380 +0200
4 @@ -1478,6 +1478,7 @@ fi
5  
6  if test "$with_bonjour" = yes ; then
7    AC_CHECK_HEADER(dns_sd.h, [], [AC_MSG_ERROR([header file <dns_sd.h> is required for Bonjour])])
8 +  AC_CHECK_LIB(dns_sd, DNSServiceRegister, [BONJOUR_LIBS=-ldns_sd])
9  dnl At some point we might add something like
10  dnl AC_SEARCH_LIBS(DNSServiceRegister, dns_sd)
11  dnl but right now, what that would mainly accomplish is to encourage
12 @@ -1485,6 +1486,7 @@ dnl people to try to use the avahi imple
13  dnl If you want to use Apple's own Bonjour code on another platform,
14  dnl just add -ldns_sd to LIBS manually.
15  fi
16 +AC_SUBST([BONJOUR_LIBS])
17  
18  # for contrib/uuid-ossp
19  if test "$with_uuid" = bsd ; then
20 diff -urNp -x '*.orig' postgresql-13.6.org/src/Makefile.global.in postgresql-13.6/src/Makefile.global.in
21 --- postgresql-13.6.org/src/Makefile.global.in  2022-04-04 17:57:53.704326629 +0200
22 +++ postgresql-13.6/src/Makefile.global.in      2022-04-04 17:57:57.922336382 +0200
23 @@ -172,6 +172,7 @@ includedir_internal = $(pkgincludedir)/i
24  pgxsdir = $(pkglibdir)/pgxs
25  bitcodedir = $(pkglibdir)/bitcode
26  
27 +BONJOUR_LIBS            = @BONJOUR_LIBS@
28  
29  ##########################################################################
30  #
31 diff -urNp -x '*.orig' postgresql-13.6.org/src/backend/Makefile postgresql-13.6/src/backend/Makefile
32 --- postgresql-13.6.org/src/backend/Makefile    2022-02-07 22:17:41.000000000 +0100
33 +++ postgresql-13.6/src/backend/Makefile        2022-04-04 17:57:57.921336380 +0200
34 @@ -63,7 +63,7 @@ ifneq ($(PORTNAME), win32)
35  ifneq ($(PORTNAME), aix)
36  
37  postgres: $(OBJS)
38 -       $(CC) $(CFLAGS) $(call expand_subsys,$^) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $(LIBS) -o $@
39 +       $(CC) $(CFLAGS) $(call expand_subsys,$^) $(LDFLAGS) $(LDFLAGS_EX) $(export_dynamic) $(LIBS) $(BONJOUR_LIBS) -o $@
40  
41  endif
42  endif