$NetBSD: patch-aa,v 1.3 2005/08/05 19:43:45 jlam Exp $

--- src/backend/Makefile.orig	2005-01-26 16:57:32.000000000 -0500
+++ src/backend/Makefile
@@ -13,6 +13,10 @@ subdir = src/backend
 top_builddir = ../..
 include $(top_builddir)/src/Makefile.global
 
+CFLAGS+= $(DL_CFLAGS)
+LDFLAGS+= $(DL_LDFLAGS)
+LIBS+= $(DL_LIBS)
+
 DIRS := access bootstrap catalog parser commands executor lib libpq \
 	main nodes optimizer port postmaster regex rewrite \
 	storage tcop utils $(top_builddir)/src/timezone
