summaryrefslogtreecommitdiff
path: root/x11/p5-Tk/patches/patch-aa
blob: cd06d866c2c5998fa981539c61d2035b7337aa63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aa,v 1.3 2005/12/12 18:04:47 joerg Exp $

--- Tk/MMutil.pm.orig	2004-03-27 14:55:55.000000000 +0000
+++ Tk/MMutil.pm
@@ -306,10 +306,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;
 }