klibc-bot for Ben Hutchings
2019-Jan-25 02:57 UTC
[klibc] [klibc:master] alpha: Fix division routine generation in out-of-tree build
Commit-ID: a78244c13724c19f2b8cc533af7284b882697c30 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=a78244c13724c19f2b8cc533af7284b882697c30 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Fri, 25 Jan 2019 02:35:31 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:38:03 +0000 [klibc] alpha: Fix division routine generation in out-of-tree build Kbuild expands every -I in the compiler options so that in an out-of-tree build both the source directory and corresponding object directory are on the include path. We currently use $(KLIBCCPPFLAGS) when compiling divide.c, which is not expanded, so in an out-of-tree buld the compiler does not find headers in the source tree. Use the flags macro to expand $(KLIBCCPPFLAGS). Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/arch/alpha/Kbuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/klibc/arch/alpha/Kbuild b/usr/klibc/arch/alpha/Kbuild index a3f2706..2e566eb 100644 --- a/usr/klibc/arch/alpha/Kbuild +++ b/usr/klibc/arch/alpha/Kbuild @@ -34,7 +34,8 @@ $(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) $(KLIBCCPPFLAGS) \ + cmd_genss = $(CC) $(DIVCFLAGS) $(FILE_CFLAGS) \ + $(call flags,KLIBCCPPFLAGS) \ -DNAME=$(basename $(notdir $@)) -S -o $@ $< $(obj)/%.ss: $(obj)/divide.c
Maybe Matching Threads
- [klibc:master] alpha: Support building without glibc headers
- [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