blob: 0a64b86b49bead845ec4201c54499d6109e73528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Respect LDFLAGS from environment
This fixes cross build using OE
Upstream-Status: Pending
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
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
|