Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From cdc6edc2cfcd0ce88d6e66654d605dad303b1a75 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 11 Sep 2018 17:03:36 -0700 |
| 4 | Subject: [PATCH] klibc/Kbuild: Accept EXTRA_KLIBCAFLAGS |
| 5 | |
| 6 | For passing additional assembler flags |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | usr/klibc/Kbuild | 3 ++- |
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild |
| 16 | index 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 $@ $< |