$NetBSD: patch-ac,v 1.1.1.1 2006/03/20 14:45:49 uebayasi Exp $

--- src/backend/Makefile.orig	2005-10-28 05:45:29.000000000 +0900
+++ 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
