blob: 94818e3669054166faca9e2f3414b5f32b71baa5 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From cdc6edc2cfcd0ce88d6e66654d605dad303b1a75 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Sep 2018 17:03:36 -0700
4Subject: [PATCH] klibc/Kbuild: Accept EXTRA_KLIBCAFLAGS
5
6For passing additional assembler flags
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 usr/klibc/Kbuild | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
16index 98caf2e9..b34521e0 100644
17--- a/usr/klibc/Kbuild
18+++ b/usr/klibc/Kbuild
19@@ -168,7 +168,8 @@ $(SOHASH): $(SOLIB) $(SOLIB).hash
20 targets += interp.o
21
22 quiet_cmd_interp = BUILD $@
23- cmd_interp = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \
24+ cmd_interp = $(KLIBCCC) $(klibccflags) $(EXTRA_KLIBCAFLAGS) \
25+ -D__ASSEMBLY__ \
26 -DLIBDIR=\"$(SHLIBDIR)\" \
27 -DSOHASH=\"$(SOLIBHASH)\" \
28 -c -o $@ $<