diff -pruN 1.13-4/debian/changelog 1.13-6/debian/changelog
--- 1.13-4/debian/changelog	2018-08-22 02:42:27.000000000 +0000
+++ 1.13-6/debian/changelog	2018-09-09 23:14:47.000000000 +0000
@@ -1,8 +1,25 @@
+quantlib-swig (1.13-6) unstable; urgency=medium
+
+  * debian/rules: Additional settings for hppa, plus cleanup. Thanks to
+    John David Anglin for the -mlong-calls suggestion.	(Closes: #908408)
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Sun, 09 Sep 2018 18:14:47 -0500
+
+quantlib-swig (1.13-5) unstable; urgency=medium
+
+  [Michael Hudson-Doyle]
+  * Build for all supported versions of Python 3. 
+
+  [ Dirk Eddelbuettel ]
+  * Applied patch by Michael
+
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 05 Sep 2018 06:27:14 -0500
+
 quantlib-swig (1.13-4) unstable; urgency=medium
 
   * debian/rules: Refine compilerflags for i386 (on amd64) and others
 
- -- Dirk Eddelbuettel <edd@debian.org>  Tue, 21 Aug 2018 21:42:27 -0500
+ -- Dirk Eddelbuettel <edd@debian.org>  Wed, 22 Aug 2018 09:13:14 -0500
 
 quantlib-swig (1.13-3) unstable; urgency=medium
 
diff -pruN 1.13-4/debian/rules 1.13-6/debian/rules
--- 1.13-4/debian/rules	2018-08-22 02:42:27.000000000 +0000
+++ 1.13-6/debian/rules	2018-09-09 23:14:47.000000000 +0000
@@ -19,7 +19,7 @@ rrdeb		:= $(CURDIR)/debian/$(rrpackage)
 arch		:= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
 cpu		:= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 
-PYTHON  	:= $(shell py3versions -d)
+PYTHONS  	:= $(shell py3versions -s)
 RUBY		:= ruby
 
 #export DH_VERBOSE=1
@@ -37,9 +37,10 @@ cxxcompiler	= g++
 ## edd 26 Oct 2007      turn strict aliasing warning off
 ## edd 01 May 2011      add -fpermissive as g++ is more of a stickler
 ## edd 06 May 2011      remove -fpermissive with QL 1.1 betas
+## edd 09 Sep 2018      bringing over a few extra settings for hppa
 compilerflags	= -O2 -Wall -Wno-strict-aliasing -DBOOST_NO_AUTO_PTR
 ifeq ($(cpu),hppa)
-compilerflags   = -O2 -ffunction-sections -DBOOST_NO_AUTO_PTR
+compilerflags   = -O0 -g0 -mlong-calls -ffunction-sections --param ggc-min-expand=20 -DBOOST_NO_AUTO_PTR 
 #cxxcompiler	= g++-3.0
 endif
 
@@ -51,9 +52,10 @@ endif
 ## edd 27 May 2012      added mips/mipsel/armel/armhf here too
 ## edd 11 Mar 2015      remove powerpc and armhf from the list as they built on Ubuntu (cf
 ##                      https://launchpad.net/ubuntu/+source/quantlib-swig/1.5-1ubuntu1) and #779720)
-##                      also remove mips, mipsel as they are getting care of below
+##                      also remove mips, mipsel as they are getting taken care of below
+## edd 09 Sep 2018      adding mips64el here as well as it recently timed out
 #ifneq "$(findstring $(cpu), m68k arm armeb s390 powerpc armel armhf mips mipsel)" ""
-ifneq "$(findstring $(cpu), m68k arm armeb s390 armel)" ""
+ifneq "$(findstring $(cpu), m68k arm armeb s390 armel mips64el)" ""
 compilerflags   = -O0 -g0 -DBOOST_NO_AUTO_PTR
 endif
 
@@ -72,7 +74,7 @@ compilerflags   = -O0 -g0 --param ggc-mi
 endif
 
 ## edd 22 Aug 2018      trying to help a few other systems with their memory exhaustion
-ifneq "$(findstring $(cpu), hppa hurd-i386 kfreebsd-i386 m68k powerpc x32)" ""
+ifneq "$(findstring $(cpu), hurd-i386 kfreebsd-i386 m68k powerpc x32)" ""
 compilerflags   = -O0 -g0 --param ggc-min-expand=20 -DBOOST_NO_AUTO_PTR
 endif
 
@@ -99,12 +101,13 @@ build-stamp:
 			--build $(arch)
 
         # $(MAKE)
-	(cd Python && 						\
-			CC="$(cxxcompiler)"			\
-			CXX="$(cxxcompiler)" 			\
-			CFLAGS="$(compilerflags)" 		\
-			CXXFLAGS="$(compilerflags)"		\
-			$(PYTHON) setup.py build		)
+	(cd Python && for python in $(PYTHONS); do		\
+				CC="$(cxxcompiler)"		\
+				CXX="$(cxxcompiler)" 		\
+				CFLAGS="$(compilerflags)"	\
+				CXXFLAGS="$(compilerflags)"	\
+				$$python setup.py build;	\
+			done					)
 
 	# (cd Ruby &&						\
 	# 		CC="$(cxxcompiler)"			\
@@ -128,7 +131,9 @@ test-stamp:
 #ifeq "$(findstring $(arch), m68k arm)" ""
 ifeq ($(cpu),i486)
         # -$(MAKE) test
-	(cd Python && $(PYTHON) setup.py test			)
+	(cd Python && for python in $(PYTHONS); do		\
+		$$python setup.py test;				\
+		done						)
 	#(cd Ruby && $(RUBY) setup.rb test 			)
 endif
 	touch test-stamp
@@ -138,8 +143,9 @@ clean:
 	dh_testroot
 	rm -f build-stamp test-stamp install-stamp
 	-test -f Makefile && $(MAKE) realclean
-	(cd Python && 						\
-			$(PYTHON) setup.py clean --all	&&	\
+	(cd Python && for python in $(PYTHONS); do 		\
+			$$python setup.py clean --all;		\
+			done &&					\
 			rm -f QuantLib/*.pyc			)
 #	(cd Ruby &&						\
 #			rm -f quantlib_wrap.o QuantLibc.so 	)
@@ -153,9 +159,11 @@ install-stamp:
 	dh_installdirs	-p$(pypackage)	usr/share/$(pypackage)
         #$(MAKE) install PREFIX=$(debtmp)/usr
 	(cd Python && 						\
-		$(PYTHON) setup.py 				\
-			install --prefix=$(pydeb)/usr 		\
-				--install-layout=deb		)
+		for python in $(PYTHONS); do			\
+			$$python setup.py 			\
+				install --prefix=$(pydeb)/usr 	\
+					--install-layout=deb;	\
+		done						)
 
         # edd 2005-Apr-14  copy swig file manually instead
 	cp -vax SWIG/* 	$(pydeb)/usr/share/$(pypackage)/
