$NetBSD: patch-aa,v 1.6 2015/03/04 08:55:35 wiz Exp $

--- Tk/MMutil.pm.orig	2013-11-15 23:50:03.000000000 +0000
+++ Tk/MMutil.pm
@@ -313,10 +309,13 @@ sub const_config
 #   }
    $self->{'LDFLAGS'} =~ s/-flat_namespace//;
    $self->{'LDFLAGS'} =~ s/-undefined\s+suppress//;
-  } elsif ($^O =~ /(openbsd)/i)
+  } elsif ($^O =~ /(.*bsd)/i)
   {
    # -Bforcearchive is bad news for Tk - we don't want all of libpTk.a in all .so-s.
    $self->{'LDDLFLAGS'} =~ s/-Bforcearchive\s*//g;
+  } elsif ($^O =~ /(.*dragonfly)/i) {
+   # -Bforcearchive is bad news for Tk - we don't want all of libpTk.a in all .so-s.
+   $self->{'LDDLFLAGS'} =~ s/-Bforcearchive\s*//g;
   }
  return $self->MM::const_config;
 }
