Description: Hack the linking of python_selinux.so
 This isn't the best way to do it, but it's a quick hack to get Python builging.
 .
 libselinux (2.1.9-1) unstable; urgency=low
 .
   * New upstream version, lots of man page changes, python related changes,
     and lots of bug fixes.
Author: Russell Coker <russell@coker.com.au>

---
Origin: Russell Coker
Last-Update: 2012-02-20

--- libselinux-2.1.9.orig/src/Makefile
+++ libselinux-2.1.9/src/Makefile
@@ -85,7 +85,7 @@ $(SWIGRUBYLOBJ): $(SWIGRUBYCOUT)
 	$(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -fPIC -DSHARED -c -o $@ $<
 
 $(SWIGSO): $(SWIGLOBJ)
-	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux -L$(LIBDIR) $(PYTHONLIBDIR) -Wl,-soname,$@,-z,defs
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux -L$(LIBDIR) $(PYTHONLIBDIR) -Wl,-soname,$@,-z,defs -l$(PYLIBVER)
 
 $(SWIGRUBYSO): $(SWIGRUBYLOBJ)
 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux -L$(LIBDIR) -Wl,-soname,$@
