File: dpkg-buildflags.patch

package info (click to toggle)
gentoo 0.20.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,468 kB
  • sloc: ansic: 28,652; sh: 4,112; makefile: 343; sed: 16
file content (20 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Use CFLAGS flags from environment (dpkg-buildflags).
 Necessary for hardening flags.
 .
 No idea why the developer disables them like this.
 .
 Also needs dh-autoreconf to apply the changes during the build.
Author: Simon Ruderich <simon@ruderich.org>
Last-Update: 2015-02-08 (I. De Marchi)

--- a/configure
+++ b/configure
@@ -5402,7 +5402,7 @@
 # Don't just call it CFLAGS, since it then gets inherited into intl/, and GNU
 # and I don't exactly code alike. Don't include CFLAGS as set by AC_PROG_CC
 # above, since it includes -g -O2 for gcc, for reasons unknown.
-GENTOO_CFLAGS="-Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Werror-implicit-function-declaration"
+GENTOO_CFLAGS="$CFLAGS -Wall -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Werror-implicit-function-declaration"
 
 # Check whether --enable-debug was given.
 if test "${enable_debug+set}" = set; then :