commit 8e343dcff4d72f3de1eacb7a928b49c2a2f643cd parent efc6e5941647b9e76e5d45cce3735f5278353497 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 31 Oct 2024 21:59:34 +0100 build/libc: Fix aarch64 Makefiles Chaining of inference rules is not portable and it is better to make explicit command lines. Diffstat:
M | README | | | 2 | +- |
M | src/libc/arch/arm64/linux/Makefile | | | 9 | ++++----- |
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/README b/README @@ -17,7 +17,7 @@ and pass the required options the the config target. For example if we want to cross compile scc for aarch64-linux-musl target from a amd64-linux-gnu host system: - $ make config CROSS_COMPILE=aarch-linux-musl- CONF=arm64-linux + $ make CROSS_COMPILE=aarch64-linux-musl- CONF=arm64-linux config $ make The build system of scc supports parallel builds that will reduce diff --git a/src/libc/arch/arm64/linux/Makefile b/src/libc/arch/arm64/linux/Makefile @@ -24,14 +24,13 @@ OBJS =\ _cerrno.$O\ _sys_errlist.$O\ -GENSRC = $(GENOBJS:.$O=.s) - all: $(OBJS) $(CRT) $(CRT): ../crt-posix.s -$(GENSRC): syscall.lst - ./gensys.sh $(@:.s=) +$(GENOBJS): syscall.lst + ./gensys.sh $(@:.$O=) + $(AS) $(PROJ_ASFLAGS) $(@:.$O=.s) clean: - rm -f $(GENSRC) _sys_errlist.c + rm -f $(GENOBJS:.$O=.s) _sys_errlist.c