blob: 37220960ab768fbb320cc99d28366d12aa87a94e [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001We need to ensure our CFLAGS are preserved as well as whatever tweak configure
2tries to make. Without these, the debug prefix changes get lost and we lose
3build reproducibility, likely with other side effects.
4
5Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6Upstream-Status: Pending
72020/1/27
8
9Index: kbd-2.2.0/configure.ac
10===================================================================
11--- kbd-2.2.0.orig/configure.ac
12+++ kbd-2.2.0/configure.ac
13@@ -72,9 +72,9 @@ if test "$enable_code_coverage" = yes; t
14 fi
15
16 case "$GCC,$ac_cv_prog_cc_g" in
17- yes,yes) CFLAGS="-g $CC_O_LEVEL $FORTIFY_SOURCE" ;;
18- yes,) CFLAGS="$CC_O_LEVEL $FORTIFY_SOURCE" ;;
19- ,yes) CFLAGS="-g" ;;
20+ yes,yes) CFLAGS="-g $CC_O_LEVEL $FORTIFY_SOURCE $CFLAGS" ;;
21+ yes,) CFLAGS="$CC_O_LEVEL $FORTIFY_SOURCE $CFLAGS" ;;
22+ ,yes) CFLAGS="-g $CFLAGS" ;;
23 esac
24
25 CC_CHECK_CFLAGS_APPEND([\