pkgsrc/x11/p5-Tk/patches/patch-aa
joerg 1143f591e9 Fix errno and linkage on DragonFly. Fix dependency detection problem
on DragonFly, it needs to pickup png.h correctly.
2005-12-12 18:04:47 +00:00

19 lines
703 B
Text

$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;
}