klibc-bot for Ben Hutchings
2019-Jan-18 16:42 UTC
[klibc] [klibc:master] alpha: Support building without glibc headers
Commit-ID: c8fc455bb5667c97e21a76621ae8317e1bf0ad24
Gitweb:
http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c8fc455bb5667c97e21a76621ae8317e1bf0ad24
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Fri, 18 Jan 2019 00:35:40 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 18 Jan 2019 03:10:14 +0000
[klibc] alpha: Support building without glibc headers
Unless we use the "-nostdinc" option, gcc will implicitly include
<bits/stdc-predef.h>, which is usually provided by glibc. This is
part of $(KLIBCCPPFLAGS) which we generally include in compiler
command lines. Add it to alpha's special rules for compiling the
division subroutines.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/arch/alpha/Kbuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/klibc/arch/alpha/Kbuild b/usr/klibc/arch/alpha/Kbuild
index f5c30f3..a3f2706 100644
--- a/usr/klibc/arch/alpha/Kbuild
+++ b/usr/klibc/arch/alpha/Kbuild
@@ -34,7 +34,7 @@ $(addprefix $(obj)/,$(div-objs:.o=.S)): $(obj)/%.S:
$(obj)/%.ss
$(call if_changed,regswap)
quiet_cmd_genss = DIV-CC $@
- cmd_genss = $(CC) $(DIVCFLAGS) $(FILE_CFLAGS) \
+ cmd_genss = $(CC) $(DIVCFLAGS) $(FILE_CFLAGS) $(KLIBCCPPFLAGS) \
-DNAME=$(basename $(notdir $@)) -S -o $@ $<
$(obj)/%.ss: $(obj)/divide.c
Possibly Parallel Threads
- [klibc:master] alpha: Fix division routine generation in out-of-tree build
- [klibc 21/43] alpha support for klibc
- [PATCH v2 1/5] Kbuild: add support for clang builds
- [PATCH v2 1/5] Kbuild: add support for clang builds
- [klibc:master] Fix errlist.c generation in out-of-tree build
