File: configure_debugging.patch

package info (click to toggle)
trnascan-se 2.0.12%2Bds-2
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 19,904 kB
  • sloc: ansic: 17,624; perl: 15,985; makefile: 54; sh: 54
file content (22 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: append CFLAGS in configure.ac instead of overriding it
 This is needed to propagate Debian standard build flags
Author: Étienne Mollier <etienne.mollier@mailoo.org>
Forwarded: no
Last-Update: 2020-11-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- trnascan-se.orig/configure.ac
+++ trnascan-se/configure.ac
@@ -21,9 +21,10 @@
 AC_PROG_CC
 
 if test "$enable_debugging" != "no"; then
-  CFLAGS="-g -Wall"
+  AX_APPEND_FLAG([-g], [CFLAGS])
+  AX_APPEND_FLAG([-Wall], [CFLAGS])
 else
-  CFLAGS="-O3"
+  AX_APPEND_FLAG([-O3], [CFLAGS])
 fi
 
 # standard install program