pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/gimageview Link the binary program against -l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03c98cbd731a
branches:  trunk
changeset: 483341:03c98cbd731a
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Wed Nov 10 20:01:14 2004 +0000

description:
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:

 graphics/gimageview/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 42c6501b2965 -r 03c98cbd731a graphics/gimageview/Makefile
--- a/graphics/gimageview/Makefile      Wed Nov 10 19:52:45 2004 +0000
+++ b/graphics/gimageview/Makefile      Wed Nov 10 20:01:14 2004 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index