aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/boot-format/boot-format/flags.patch
blob: cddb34cdea4407d0f444a7ee2ad112396e5c9171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: git/Makefile
===================================================================
--- git.orig/Makefile
+++ git/Makefile
@@ -3,14 +3,14 @@
 INSTALL=install
 PREFIX=/usr
 
-CFLAGS=-Wall
+override CFLAGS+=-Wall
 
 all: boot_format
 
 boot_format.o: boot_format.c boot_format.h
 
 boot_format: boot_format.o
-	$(CC) $< -o $@
+	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
 
 install: boot_format
 	$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin