--- origsrc/gst-python-0.10.17/gst/Makefile.am	2009-11-02 10:39:13.623564100 -0600
+++ src/gst-python-0.10.17/gst/Makefile.am	2009-11-02 11:01:16.787671200 -0600
@@ -1,7 +1,16 @@
 common_cflags = $(PYGOBJECT_CFLAGS) $(GST_CFLAGS) $(GST_OPTION_CFLAGS) -fno-strict-aliasing
-common_libadd = $(GST_LIBS) $(GST_OPTION_LIBS)
+common_libadd = libpygst-@GST_MAJORMINOR@-python@PYTHON_VERSION@.la $(GST_LIBS) $(GST_OPTION_LIBS)
 common_ldflags = -module -avoid-version
 
+lib_LTLIBRARIES = libpygst-@GST_MAJORMINOR@-python@PYTHON_VERSION@.la
+
+libpygst_@GST_MAJORMINOR@_python@PYTHON_VERSION@_la_CFLAGS = $(common_cflags)
+libpygst_@GST_MAJORMINOR@_python@PYTHON_VERSION@_la_LIBADD = $(GST_LIBS)
+libpygst_@GST_MAJORMINOR@_python@PYTHON_VERSION@_la_LDFLAGS = -export-dynamic
+libpygst_@GST_MAJORMINOR@_python@PYTHON_VERSION@_la_SOURCES =	\
+	gst-argtypes.c 		\
+	pygstminiobject.c
+
 pkgpyexecdir = $(pyexecdir)/gst-$(GST_MAJORMINOR)/gst
 
 # we install everything in pyexecdir; otherwise you end up with a mess for
@@ -50,13 +59,11 @@ GEN_FILES = arg-types.py gst-types.defs 
 # GStreamer bindings
 _gst_la_CFLAGS = $(common_cflags)
 _gst_la_LIBADD = $(common_libadd) $(GST_BASE_LIBS)
-_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "^(init_gst|_PyGObject_API|pygstminiobject_).*" \
+_gst_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "^(init_gst|_PyGObject_API).*" \
 	$(GST_BASE_LIBS) $(GST_CONTROLLER_LIBS) $(GST_NET_LIBS) $(GST_DP_LIBS)
 _gst_la_SOURCES = 		\
-	gst-argtypes.c 		\
 	gstmodule.c 		\
 	pygstiterator.c		\
-	pygstminiobject.c 	\
 	pygstvalue.c 		\
 	pygstexception.c
 
@@ -102,7 +109,7 @@ pbutils_la_CFLAGS = $(common_cflags) $(G
 pbutils_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgstpbutils-0.10
 pbutils_la_LDFLAGS = $(common_ldflags) \
 	-export-symbols-regex "^(initpbutils|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
-pbutils_la_SOURCES = pbutilsmodule.c gst-argtypes.c
+pbutils_la_SOURCES = pbutilsmodule.c
 nodist_pbutils_la_SOURCES = pbutils.c
 PBUTILS_OVERRIDES = pbutils.override
 PBUTILS_DEFS = pbutils.defs
@@ -126,7 +133,7 @@ if HAVE_GST_AUDIO
  audio_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-0.10
  audio_la_LDFLAGS = $(common_ldflags) \
 	-export-symbols-regex "^(initaudio|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
- audio_la_SOURCES = audiomodule.c gst-argtypes.c
+ audio_la_SOURCES = audiomodule.c
  nodist_audio_la_SOURCES = audio.c
 audio.c: $(AUDIO_DEFS) $(AUDIO_OVERRIDES) $(GEN_FILES)
 
@@ -148,7 +155,7 @@ if HAVE_GST_VIDEO
  video_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-0.10
  video_la_LDFLAGS = $(common_ldflags) \
 	-export-symbols-regex "^(initvideo|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
- video_la_SOURCES = videomodule.c gst-argtypes.c
+ video_la_SOURCES = videomodule.c
  nodist_video_la_SOURCES = video.c
 video.c: $(VIDEO_DEFS) $(VIDEO_OVERRIDES) $(GEN_FILES)
 
@@ -170,7 +177,7 @@ if HAVE_GST_TAG
  tag_la_LIBADD = $(common_libadd) $(GST_PLUGINS_BASE_LIBS) -lgsttag-0.10
  tag_la_LDFLAGS = $(common_ldflags) \
 	-export-symbols-regex "^(inittag|_PyGObject_API).*" $(GST_PLUGINS_BASE_LIBS)
- tag_la_SOURCES = tagmodule.c gst-argtypes.c
+ tag_la_SOURCES = tagmodule.c
  nodist_tag_la_SOURCES = tag.c
 tag.c: $(TAG_DEFS) $(TAG_OVERRIDES) $(GEN_FILES)
 
--- origsrc/gst-python-0.10.17/gst/interfaces.override	2009-11-02 10:39:13.654764100 -0600
+++ src/gst-python-0.10.17/gst/interfaces.override	2009-11-01 19:37:40.330909600 -0600
@@ -43,6 +43,9 @@ headers
 #include <gst/interfaces/streamvolume.h>
 #endif
 
+GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
+#define GST_CAT_DEFAULT pygst_debug
+
 %%
 modulename gst.interfaces
 %%
--- origsrc/gst-python-0.10.17/gst/interfacesmodule.c	2009-11-02 10:39:13.685964200 -0600
+++ src/gst-python-0.10.17/gst/interfacesmodule.c	2009-11-01 19:37:50.673727600 -0600
@@ -28,6 +28,8 @@
 #include <pygobject.h>
 #include <gst/gst.h>
 
+GST_DEBUG_CATEGORY (pygst_debug);
+
 void pyinterfaces_register_classes (PyObject *d);
 void pyinterfaces_add_constants(PyObject *module, const gchar *strip_prefix);
 		
--- origsrc/gst-python-0.10.17/gst/pygstminiobject.c	2009-04-15 15:16:30.000000000 -0500
+++ src/gst-python-0.10.17/gst/pygstminiobject.c	2009-11-02 11:09:13.260302000 -0600
@@ -33,7 +33,7 @@ static void pygstminiobject_dealloc(PyGs
 /* static int  pygstminiobject_traverse(PyGstMiniObject *self, visitproc visit, void *arg); */
 /* static int  pygstminiobject_clear(PyGstMiniObject *self); */
 
-GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
+GST_DEBUG_CATEGORY (pygst_debug);
 #define GST_CAT_DEFAULT pygst_debug
 
 /**
