diff -u libxslt-1.1.26/debian/rules libxslt-1.1.26/debian/rules
--- libxslt-1.1.26/debian/rules
+++ libxslt-1.1.26/debian/rules
@@ -5,13 +5,19 @@
 # The current default version of python
 PYVER=$(shell pyversions -d)
 
-CONFIGURE_FLAGS := CC="gcc -Wl,--as-needed" --cache-file="$(CURDIR)/build/config.cache"
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+CONFIGURE_FLAGS := CC="gcc -Wl,--as-needed" --cache-file="$(CURDIR)/build/config.cache" \
+    $(shell dpkg-buildflags --export=configure)
 
 TARGETS := main $(PYVERS) $(PYVERS:%=%-dbg)
 
 override_dh_auto_configure: $(TARGETS:%=configure-%)
 
 configure-%:
+	-test -r /usr/share/misc/config.sub && \
+	cp -f /usr/share/misc/config.sub config.sub
+	-test -r /usr/share/misc/config.guess && \
+	cp -f /usr/share/misc/config.guess config.guess
 	dh_auto_configure --builddirectory=build/$* -- $(CONFIGURE_FLAGS)
 
 configure-main: CONFIGURE_FLAGS += --without-python
@@ -28,12 +34,7 @@
 build-python%-dbg: BUILD_FLAGS = PYTHON_INCLUDES=/usr/include/$(*:-dbg=_d) LDFLAGS="-L$(CURDIR)/debian/tmp/usr/lib" CFLAGS="-Wall -g -O0"
 
 override_dh_auto_clean:
-	rm -rf build debian/tmp-dbg
-	
-	-test -r /usr/share/misc/config.sub && \
-	cp -f /usr/share/misc/config.sub config.sub
-	-test -r /usr/share/misc/config.guess && \
-	cp -f /usr/share/misc/config.guess config.guess
+	rm -rf build debian/tmp-dbg config.sub config.guess
 
 override_dh_auto_install: $(TARGETS:%=install-%)
 
diff -u libxslt-1.1.26/debian/changelog libxslt-1.1.26/debian/changelog
--- libxslt-1.1.26/debian/changelog
+++ libxslt-1.1.26/debian/changelog
@@ -1,3 +1,13 @@
+libxslt (1.1.26-8.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Eliminate system config.sub and config.guess from the debian diff
+    (closes: #670799).
+  * Fix cve-2011-3970: out-of-bounds array access issue (closes: #660650). 
+  * Enable hardened build flags (closes: #655601).  
+
+ -- Michael Gilbert <mgilbert@debian.org>  Sun, 29 Apr 2012 00:56:19 -0400
+
 libxslt (1.1.26-8) unstable; urgency=low
 
   * debian/rules:
only in patch2:
unchanged:
--- libxslt-1.1.26.orig/libxslt/pattern.c
+++ libxslt-1.1.26/libxslt/pattern.c
@@ -1864,6 +1864,8 @@
 		while ((pattern[end] != 0) && (pattern[end] != '"'))
 		    end++;
 	    }
+            if (pattern[end] == 0)
+                break;
 	    end++;
 	}
 	if (current == end) {
