diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-01-18 00:35:40 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-01-18 03:10:14 +0000 |
commit | c8fc455bb5667c97e21a76621ae8317e1bf0ad24 (patch) | |
tree | dcc6ee03b3deb3b0fedcc621317373e8b0622c8a | |
parent | 1e6e96615227de6ca88d096fb0ebe45bf25981c2 (diff) | |
download | klibc-c8fc455bb5667c97e21a76621ae8317e1bf0ad24.tar.gz |
[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@decadent.org.uk>
-rw-r--r-- | usr/klibc/arch/alpha/Kbuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/klibc/arch/alpha/Kbuild b/usr/klibc/arch/alpha/Kbuild index f5c30f328c2e48..a3f2706f09e491 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 |