993b866
diff -up glib-2.22.0/configure.in.pyloc glib-2.22.0/configure.in
993b866
--- glib-2.22.0/configure.in.pyloc	2009-09-22 09:40:56.000000000 -0400
993b866
+++ glib-2.22.0/configure.in	2009-09-23 15:37:23.729418282 -0400
993b866
@@ -256,8 +256,10 @@ AC_ARG_WITH(runtime-libdir,
993b866
                            [Install runtime libraries relative to libdir])],
993b866
            [],
993b866
 	   [with_runtime_libdir=""])
993b866
-GLIB_RUNTIME_LIBDIR=$with_runtime_libdir
993b866
+GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
993b866
+ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
993b866
 AC_SUBST(GLIB_RUNTIME_LIBDIR)
993b866
+AC_SUBST(ABS_GLIB_RUNTIME_LIBDIR)
993b866
 AM_CONDITIONAL(HAVE_GLIB_RUNTIME_LIBDIR, [test "x$with_runtime_libdir" != "x"])
993b866
 
993b866
 dnl Checks for programs.
993b866
diff -up glib-2.22.0/glib/Makefile.am.pyloc glib-2.22.0/glib/Makefile.am
993b866
--- glib-2.22.0/glib/Makefile.am.pyloc	2009-09-22 16:19:35.000000000 -0400
993b866
+++ glib-2.22.0/glib/Makefile.am	2009-09-23 15:53:09.109395306 -0400
993b866
@@ -380,8 +380,8 @@ libglib-gdb.py: libglib-gdb.py.in
993b866
 
993b866
 
993b866
 install-data-hook: libglib-gdb.py
993b866
-	mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load${libdir}
993b866
-	$(INSTALL) libglib-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load${libdir}/libglib-2.0.so.0.$(LT_CURRENT).0-gdb.py
993b866
+	mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR)
993b866
+	$(INSTALL) libglib-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(ABS_GLIB_RUNTIME_LIBDIR)/libglib-2.0.so.0.$(LT_CURRENT).0-gdb.py
993b866
 if HAVE_GLIB_RUNTIME_LIBDIR
993b866
 	mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
993b866
 	mv $(DESTDIR)$(libdir)/libglib-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
993b866
diff -up glib-2.22.0/gobject/Makefile.am.pyloc glib-2.22.0/gobject/Makefile.am
993b866
--- glib-2.22.0/gobject/Makefile.am.pyloc	2009-09-22 16:19:20.000000000 -0400
993b866
+++ glib-2.22.0/gobject/Makefile.am	2009-09-23 15:53:18.011645753 -0400
993b866
@@ -274,8 +274,8 @@ uninstall-gdb:
993b866
 	-rm -r $(DESTDIR)$(datadir)/gdb
993b866
 
993b866
 install-data-hook: libgobject-gdb.py
993b866
-	mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load${libdir}
993b866
-	$(INSTALL) libgobject-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load${libdir}/libgobject-2.0.so.0.$(LT_CURRENT).0-gdb.py
993b866
+	mkdir -p $(DESTDIR)$(datadir)/gdb/auto-load/$(ABS_GLIB_RUNTIME_LIBDIR)
993b866
+	$(INSTALL) libgobject-gdb.py $(DESTDIR)$(datadir)/gdb/auto-load/$(ABS_GLIB_RUNTIME_LIBDIR)/libgobject-2.0.so.0.$(LT_CURRENT).0-gdb.py
993b866
 if HAVE_GLIB_RUNTIME_LIBDIR
993b866
 	mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
993b866
 	mv $(DESTDIR)$(libdir)/libgobject-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)