summaryrefslogtreecommitdiffstats
path: root/debian/patches/21_do_not_strip_-g.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/21_do_not_strip_-g.diff')
-rw-r--r--debian/patches/21_do_not_strip_-g.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/21_do_not_strip_-g.diff b/debian/patches/21_do_not_strip_-g.diff
new file mode 100644
index 0000000..851e303
--- /dev/null
+++ b/debian/patches/21_do_not_strip_-g.diff
@@ -0,0 +1,17 @@
+Description: Stop ./configure from stripping out -g from CFLAGS
+Author: Andreas Metzler <ametzler@debian.org>,
+ Simon Ruderich <simon@ruderich.org>
+Origin: vendor
+Last-Update: 2021-07-27
+
+--- a/configure
++++ b/configure
+@@ -4098,7 +4098,7 @@
+ test -z "$ORIGINAL_CFLAGS" && CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
+ ;;
+ (*)
+- test -z "$ORIGINAL_CFLAGS" && CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
++ :
+ ;;
+ esac
+ fi