]> git.pld-linux.org Git - packages/postgresql.git/blame - postgresql-link.patch
rebuild with perl 5.34.0
[packages/postgresql.git] / postgresql-link.patch
CommitLineData
bc3c74ea
AM
1diff -urNp -x '*.orig' postgresql-12.4.org/configure.ac postgresql-12.4/configure.ac
2--- postgresql-12.4.org/configure.ac 2021-11-09 09:31:36.707897270 +0100
3+++ postgresql-12.4/configure.ac 2021-11-09 09:31:40.651435766 +0100
61f830ee 4@@ -1470,6 +1470,7 @@ fi
081e09bf
JB
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])
c37143c9
AZ
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
61f830ee 12@@ -1477,6 +1478,7 @@ dnl people to try to use the avahi imple
c37143c9
AZ
13 dnl If you want to use Apple's own Bonjour code on another platform,
14 dnl just add -ldns_sd to LIBS manually.
081e09bf
JB
15 fi
16+AC_SUBST([BONJOUR_LIBS])
17
18 # for contrib/uuid-ossp
19 if test "$with_uuid" = bsd ; then
61f830ee
AM
20diff -urNp -x '*.orig' postgresql-12.4.org/src/Makefile.global.in postgresql-12.4/src/Makefile.global.in
21--- postgresql-12.4.org/src/Makefile.global.in 2020-08-10 23:15:53.000000000 +0200
22+++ postgresql-12.4/src/Makefile.global.in 2021-11-09 09:31:40.651435766 +0100
23@@ -173,6 +173,7 @@ includedir_internal = $(pkgincludedir)/i
24 pgxsdir = $(pkglibdir)/pgxs
25 bitcodedir = $(pkglibdir)/bitcode
26
27+BONJOUR_LIBS = @BONJOUR_LIBS@
28
29 ##########################################################################
30 #
31diff -urNp -x '*.orig' postgresql-12.4.org/src/backend/Makefile postgresql-12.4/src/backend/Makefile
32--- postgresql-12.4.org/src/backend/Makefile 2020-08-10 23:15:53.000000000 +0200
33+++ postgresql-12.4/src/backend/Makefile 2021-11-09 09:31:40.651435766 +0100
34@@ -60,7 +60,7 @@ ifneq ($(PORTNAME), win32)
081e09bf
JB
35 ifneq ($(PORTNAME), aix)
36
37 postgres: $(OBJS)
44fc39a6
AG
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 $@
081e09bf
JB
40
41 endif
42 endif
This page took 0.074039 seconds and 4 git commands to generate.