Description: <short summary of the patch>
 asdf
Author: Steinar H. Gunderson <sesse@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

Index: libapreq2-2.13/glue/Makefile.am
===================================================================
--- libapreq2-2.13.orig/glue/Makefile.am
+++ libapreq2-2.13/glue/Makefile.am
@@ -6,7 +6,7 @@ perl_config:
 	cd perl; @PERL@ ../../build/xsbuilder.pl run
 
 perl/Makefile: perl/xsbuilder perl/Makefile.PL
-	cd perl; @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@
+	cd perl; @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@ OPTIMIZE="$(CFLAGS)" LDDLFLAGS="-shared $(LDFLAGS)"
 
 perl_glue: perl/Makefile
 	cd perl; $(MAKE)
Index: libapreq2-2.13/glue/Makefile.in
===================================================================
--- libapreq2-2.13.orig/glue/Makefile.in
+++ libapreq2-2.13/glue/Makefile.in
@@ -356,7 +356,7 @@ perl_config:
 	cd perl; @PERL@ ../../build/xsbuilder.pl run
 
 perl/Makefile: perl/xsbuilder perl/Makefile.PL
-	cd perl; @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@
+	cd perl; @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@ OPTIMIZE="$(CFLAGS)" LDDLFLAGS="-shared $(LDFLAGS)"
 
 perl_glue: perl/Makefile
 	cd perl; $(MAKE)
