Update LIN demo to use lin-config
[AGL/meta-agl-demo.git] / recipes-support / lin-config / files / 0002-Change-Makefile-to-use-LDFLAGS.patch
1 Use LDFLAGS when linking
2
3 Use LDFLAGS when linking the output binary to quiet QA warnings due to
4 missing link flags.
5
6 Upstream-Status: Pending
7
8 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
9
10 --- a/Makefile  2019-11-05 11:08:11.060565285 +0000
11 +++ b/Makefile  2019-11-05 11:09:38.663570084 +0000
12 @@ -6,7 +6,7 @@
13  objects = linc_parse_xml.o pcl_config.o sllin_config.o lin_config.o
14  
15  lin_config: $(objects)
16 -       $(CC) $(objects) $(LIBS) -o lin_config
17 +       $(CC) $(LDFLAGS) $(objects) $(LIBS) -o lin_config
18  
19  %.o : %.c %.h
20         $(CC) $(CFLAGS) $(LIBS) -c $< -o $@