boot-format: obey LDFLAGS

Quiets a GNU_HASH warning.

JIRA: SB-3120

Signed-off-by: Christopher Larson <kergoth@gmail.com>
This commit is contained in:
Christopher Larson
2014-06-23 09:53:12 -07:00
parent 2684b9fdb1
commit 77186ca4b7
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,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

View File

@@ -0,0 +1,3 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/boot-format:"
SRC_URI += "file://flags.patch"
EXTRA_OEMAKE += "'CFLAGS=${CFLAGS}' 'LDFLAGS=${LDFLAGS}'"