$NetBSD: patch-ba,v 1.1 2011/09/11 10:07:34 marino Exp $

--- src/Makefile.shlib.orig	2011-07-15 22:27:14.818068000 +0000
+++ src/Makefile.shlib
@@ -136,6 +136,10 @@ ifeq ($(PORTNAME), bsdi)
   endif
 endif
 
+ifeq ($(PORTNAME), dragonfly)
+  LINK.shared		= $(COMPILER) -shared -Wl,-x,-soname,$(soname)
+endif
+
 ifeq ($(PORTNAME), freebsd)
   ifdef ELF_SYSTEM
     shlib		= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
