summaryrefslogtreecommitdiff
path: root/databases/postgresql13/patches/patch-src_backend_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql13/patches/patch-src_backend_Makefile')
-rw-r--r--databases/postgresql13/patches/patch-src_backend_Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/databases/postgresql13/patches/patch-src_backend_Makefile b/databases/postgresql13/patches/patch-src_backend_Makefile
new file mode 100644
index 00000000000..82af8e81e3e
--- /dev/null
+++ b/databases/postgresql13/patches/patch-src_backend_Makefile
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_backend_Makefile,v 1.1 2020/10/18 09:24:02 adam Exp $
+
+--- src/backend/Makefile.orig 2018-10-15 21:12:02.000000000 +0000
++++ src/backend/Makefile
+@@ -17,6 +17,10 @@ subdir = src/backend
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+
++CFLAGS+= $(DL_CFLAGS)
++LDFLAGS+= $(DL_LDFLAGS)
++LIBS+= $(DL_LIBS)
++
+ SUBDIRS = access bootstrap catalog parser commands executor foreign lib libpq \
+ main nodes optimizer partitioning port postmaster \
+ regex replication rewrite \
+@@ -113,6 +117,8 @@ endif # aix
+
+ $(top_builddir)/src/port/libpgport_srv.a: | submake-libpgport
+
++$(top_builddir)/src/common/libpgcommon_srv.a: | submake-libpgport
++
+
+ # The postgres.o target is needed by the rule in Makefile.global that
+ # creates the exports file when MAKE_EXPORTS = true.