diff -Nurd -x'*~' pygobject-2.16.0.orig/configure.ac pygobject-2.16.0/configure.ac
--- pygobject-2.16.0.orig/configure.ac	2009-01-04 15:17:33.000000000 -0500
+++ pygobject-2.16.0/configure.ac	2009-01-06 04:09:21.000000000 -0500
@@ -96,6 +96,10 @@
 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
 AC_SUBST(PLATFORM)
 
+dnl FIXME: The following PYTHON_LIBS def is tailored to my local install layout
+PYTHON_LIBS="-L${py_prefix}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
+AC_SUBST(PYTHON_LIBS)
+
 AC_ARG_ENABLE(thread,
   AC_HELP_STRING([--disable-thread], [Disable pygobject threading support]),,
   enable_thread=yes)
diff -Nurd -x'*~' pygobject-2.16.0.orig/gio/Makefile.am pygobject-2.16.0/gio/Makefile.am
--- pygobject-2.16.0.orig/gio/Makefile.am	2008-12-21 11:30:46.000000000 -0500
+++ pygobject-2.16.0/gio/Makefile.am	2009-01-06 04:31:02.000000000 -0500
@@ -72,7 +72,7 @@
 giounix.c: $(GIOUNIX_DEFS) unix.override
 unix_la_CFLAGS = $(GIOUNIX_CFLAGS)
 unix_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initunix
-unix_la_LIBADD = $(GIOUNIX_LIBS)
+unix_la_LIBADD = $(GIOUNIX_LIBS) $(PYTHON_LIBS)
 unix_la_SOURCES = unixmodule.c
 nodist_unix_la_SOURCES = unix.c
 if BUILD_GIOUNIX
diff -Nurd -x'*~' pygobject-2.16.0.orig/glib/Makefile.am pygobject-2.16.0/glib/Makefile.am
--- pygobject-2.16.0.orig/glib/Makefile.am	2008-12-21 11:30:46.000000000 -0500
+++ pygobject-2.16.0/glib/Makefile.am	2009-01-06 04:15:42.000000000 -0500
@@ -15,7 +15,7 @@
 endif
 
 libpyglib_2_0_la_CFLAGS = $(GLIB_CFLAGS)
-libpyglib_2_0_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS)
+libpyglib_2_0_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS) $(PYTHON_LIBS)
 libpyglib_2_0_la_SOURCES = 	\
 	pyglib.c		\
 	pyglib.h		\
diff -Nurd -x'*~' pygobject-2.16.0.orig/tests/Makefile.am pygobject-2.16.0/tests/Makefile.am
--- pygobject-2.16.0.orig/tests/Makefile.am	2008-12-21 11:30:45.000000000 -0500
+++ pygobject-2.16.0/tests/Makefile.am	2009-01-06 04:33:21.000000000 -0500
@@ -15,7 +15,7 @@
 linked_LIBS = testhelper.la
 
 testhelper_la_LDFLAGS = -module -avoid-version
-testhelper_la_LIBADD = $(GLIB_LIBS)
+testhelper_la_LIBADD = $(GLIB_LIBS) $(PYTHON_LIBS)
 testhelper_la_SOURCES = \
 	testhelpermodule.c \
 	test-thread.c \
