summaryrefslogtreecommitdiff
path: root/graphics/gimageview
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-11-10 20:01:14 +0000
committerjmmv <jmmv@pkgsrc.org>2004-11-10 20:01:14 +0000
commit49e20b6c7bf14afc4342ce39f3fa219f7c359597 (patch)
tree45cc0c307344c9479ffbd2665ab7bbc905ea5d7c /graphics/gimageview
parent7a34485b193761a1b0e66965d3a88bcc82ad5d1c (diff)
downloadpkgsrc-49e20b6c7bf14afc4342ce39f3fa219f7c359597.tar.gz
Link the binary program against -lpthread so that librsvg can be dlopened
at runtime without at segfault. Fixes crashes reported in PR pkg/27058.
Diffstat (limited to 'graphics/gimageview')
-rw-r--r--graphics/gimageview/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/gimageview/Makefile b/graphics/gimageview/Makefile
index 005906e4082..ab2166d3ee8 100644
--- a/graphics/gimageview/Makefile
+++ b/graphics/gimageview/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2004/10/27 20:14:20 drochner Exp $
+# $NetBSD: Makefile,v 1.33 2004/11/10 20:01:14 jmmv Exp $
DISTNAME= gimageview-0.2.26
+PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gtkmmviewer/}
@@ -19,6 +20,11 @@ USE_X11= YES
CONFIGURE_ARGS+= --disable-xinetest
CONFIGURE_ARGS+= --with-gtk2
+# The 'gimv' binary is not linked against libpthread directly, but the
+# librsvg library is. So, when the program tries to dlopen(3) it, it
+# causes a segfault due to NetBSD "limitations".
+LDFLAGS.NetBSD+= ${PTHREAD_LDFLAGS}
+
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"