[Skiboot] [PATCH] Honor linker flags passed from the environment
Frédéric Bonnard
frediz at linux.vnet.ibm.com
Sat Jun 11 00:32:22 AEST 2016
From: Frederic Bonnard <frediz at linux.vnet.ibm.com>
Let use LDFLAGS from the environment for gard.
Debian/Ubuntu use this mechanism to do hardened builds.
Signed-off-by: Frederic Bonnard <frediz at linux.vnet.ibm.com>
---
external/gard/rules.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/external/gard/rules.mk b/external/gard/rules.mk
index 0dd14ed..f9a6e31 100644
--- a/external/gard/rules.mk
+++ b/external/gard/rules.mk
@@ -28,7 +28,7 @@ $(LIBFLASH_OBJS): libflash-%.o : libflash/%.c
$(CC) $(CFLAGS) -c $< -o $@
$(EXE): $(OBJS)
- $(CC) $(CFLAGS) $^ -o $@
+ $(CC) $(LDFLAGS) $(CFLAGS) $^ -o $@
install: all
install -D gard $(DESTDIR)$(sbindir)/opal-gard
--
2.1.4
More information about the Skiboot
mailing list