Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame^] | 1 | Allow recipe to overide optimization. |
| 2 | |
| 3 | fixes: |
| 4 | |
| 5 | 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) |
| 6 | | | ^~~~~~~ |
| 7 | | cc1: all warnings being treated as errors |
| 8 | |
| 9 | |
| 10 | Upstream-Status: OE specific |
| 11 | |
| 12 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 13 | |
| 14 | Index: src/makefile |
| 15 | =================================================================== |
| 16 | --- src.orig/makefile |
| 17 | +++ src/makefile |
| 18 | @@ -43,7 +43,7 @@ CC = /usr/bin/gcc |
| 19 | CCFLAGS = -Wall \ |
| 20 | -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ |
| 21 | -Werror -Wsign-compare \ |
| 22 | - -c -ggdb -O0 \ |
| 23 | + -c -ggdb -O \ |
| 24 | -DTPM_POSIX \ |
| 25 | -D_POSIX_ \ |
| 26 | -DTPM_NUVOTON |