From 31845366d4a2212a9a6bfe4d2336f7869ef3f6d9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 31 May 2024 08:10:57 +0900 Subject: [PATCH] Makefile: separate the target to create empty dummy libraries (#502) * Makefile: separate the target to create empty dummy libraries During develompment, it's sometimes convenient to have a separate target. * ensure to create the destination directory --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 76fc2df9..4192ecbb 100644 --- a/Makefile +++ b/Makefile @@ -780,14 +780,16 @@ endif libc: include_dirs $(STATIC_LIBS) -finish: startup_files libc +dummy_libs: # # Create empty placeholder libraries. # + mkdir -p "$(SYSROOT_LIB)" && \ for name in m rt pthread crypt util xnet resolv; do \ $(AR) crs "$(SYSROOT_LIB)/lib$${name}.a"; \ done +finish: startup_files libc dummy_libs # # The build succeeded! The generated sysroot is in $(SYSROOT). # @@ -984,4 +986,4 @@ clean: $(RM) -r "$(OBJDIR)" $(RM) -r "$(SYSROOT)" -.PHONY: default startup_files libc libc_so finish install include_dirs clean check-symbols bindings +.PHONY: default startup_files libc libc_so dummy_libs finish install include_dirs clean check-symbols bindings