openbsd-ports/x11/gtk+2/patches/patch-gdk-pixbuf_Makefile_in
kurt 94ab798fc0 link gdk-pixbuf-query-loaders with -pthread so that it can dlopen threaded
shared libs such as x11/gnome/librsvg. based on a diff originally from
Mikolaj Kucharski <eth0 at o2.pl>.
2006-09-26 20:06:08 +00:00

36 lines
1.9 KiB
Plaintext

$OpenBSD: patch-gdk-pixbuf_Makefile_in,v 1.13 2006/09/26 20:06:08 kurt Exp $
--- gdk-pixbuf/Makefile.in.orig Sun Jul 2 09:57:38 2006
+++ gdk-pixbuf/Makefile.in Fri Sep 1 16:16:21 2006
@@ -526,7 +526,7 @@ gdk_pixbuf_csource_SOURCES = gdk-pixbuf-
gdk_pixbuf_csource_LDADD = $(LDADDS)
gdk_pixbuf_query_loaders_DEPENDENCIES = $(DEPS)
-gdk_pixbuf_query_loaders_LDADD = $(LDADDS)
+gdk_pixbuf_query_loaders_LDADD = $(LDADDS) -pthread
gdk_pixbuf_query_loaders_SOURCES = queryloaders.c
@@ -1604,13 +1604,6 @@ install-data-hook: install-ms-lib instal
@if $(RUN_QUERY_LOADER_TEST) ; then \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-2.0 ; \
$(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders > $(DESTDIR)$(sysconfdir)/gtk-2.0/gdk-pixbuf.loaders ; \
- else \
- echo "***" ; \
- echo "*** Warning: gdk-pixbuf.loaders not built" ; \
- echo "***" ; \
- echo "*** Generate this file manually on host" ; \
- echo "*** system using gdk-pixbuf-query-loaders" ; \
- echo "***" ; \
fi
uninstall-local: uninstall-ms-lib uninstall-def-file
@@ -1622,7 +1615,7 @@ uninstall-local: uninstall-ms-lib uninst
@BUILD_DYNAMIC_MODULES_TRUE@ LOADERS=`echo libpixbufloader-*.la` ; \
@BUILD_DYNAMIC_MODULES_TRUE@ if test "x$$LOADERS" != 'xlibpixbufloader-*.la' ; then \
@BUILD_DYNAMIC_MODULES_TRUE@ echo "Writing a gdk-pixbuf.loader file to use when running examples before installing gdk-pixbuf."; \
-@BUILD_DYNAMIC_MODULES_TRUE@ $(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders $$LOADERS > ./gdk-pixbuf.loaders ;\
+@BUILD_DYNAMIC_MODULES_TRUE@ LD_LIBRARY_PATH=$(top_builddir)/gdk-pixbuf/.libs $(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders $$LOADERS > ./gdk-pixbuf.loaders ;\
@BUILD_DYNAMIC_MODULES_TRUE@ else \
@BUILD_DYNAMIC_MODULES_TRUE@ echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
@BUILD_DYNAMIC_MODULES_TRUE@ touch gdk-pixbuf.loaders; \