From beb0f881cb4eb285228bbfdce62555146b0b87ae Mon Sep 17 00:00:00 2001
From: hans <hans@pkgsrc.org>
Date: Thu, 16 Feb 2012 15:28:19 +0000
Subject: Fix build on SunOS.

---
 chat/pidgin-latex/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'chat/pidgin-latex')

diff --git a/chat/pidgin-latex/Makefile b/chat/pidgin-latex/Makefile
index 3ef19966a19..0316acf6d8a 100644
--- a/chat/pidgin-latex/Makefile
+++ b/chat/pidgin-latex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2012/02/06 12:39:37 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2012/02/16 15:29:59 hans Exp $
 
 VERSION=	1.2.1
 PKGREVISION=	13
@@ -28,6 +28,11 @@ do-install:
 
 DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+BUILDLINK_TRANSFORM+=	rm:-Wl,--export-dynamic
+.endif
+
 .include "../../chat/pidgin/buildlink3.mk"
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../mk/tex.buildlink3.mk"
-- 
cgit v1.2.3