blob: eebddb9e789a509450435aa0994f15c5cafa7133 [file] [log] [blame]
Andrew Geisslercc589282020-09-18 13:34:40 -050011) Allow recipe to overide optimization.
2
3fixes:
4
5397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
6| | ^~~~~~~
7| cc1: all warnings being treated as errors
8
92) Allow recipe to override OE related compile-/link-flags
10
11fixes:
12
13ERROR: QA Issue: File /usr/bin/tpm_server in package ibmswtpm2 doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]
14
15Upstream-Status: OE specific
16
17Signed-off-by: Jens Rehsack <sno@NetBSD.org>
18
19Index: src/makefile
20===================================================================
21--- src.orig/makefile
22+++ src/makefile
23@@ -38,12 +38,10 @@
24 #################################################################################
25
26
27-CC = /usr/bin/gcc
28-
29 CCFLAGS = -Wall \
30 -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
31 -Werror -Wsign-compare \
32- -c -ggdb -O0 \
33+ -c -ggdb -O \
34 -DTPM_POSIX \
35 -D_POSIX_ \
36 -DTPM_NUVOTON
37@@ -79,11 +77,11 @@
38 .PRECIOUS: %.o
39
40 tpm_server: $(OBJFILES)
41- $(CC) $(OBJFILES) $(LNFLAGS) -o tpm_server
42+ $(CCLD) $(OBJFILES) $(LDFLAGS) $(LNFLAGS) -o tpm_server
43
44 clean:
45 rm -f *.o tpm_server *~
46
47 %.o: %.c
48- $(CC) $(CCFLAGS) $< -o $@
49+ $(CC) $(CCFLAGS) $(CFLAGS) $< -o $@
50