From 592fd1ca265cadee5dfdfb4b141a6636b62fd801 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Sun, 6 Feb 2022 21:13:54 +0900 Subject: [PATCH] meta: Use 'strip' from toolchain --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a55fe1fd..5b0a070c 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ CXX= ${TARGET}-g++ AR = ${TARGET}-ar AS = ${TARGET}-as OC = ${TARGET}-objcopy +STRIP= ${TARGET}-strip # CFLAGS for kernel objects and modules KERNEL_CFLAGS = -ffreestanding -O2 -std=gnu11 -g -static @@ -144,7 +145,7 @@ $(BASE)/lib/crt%.o: libc/arch/${ARCH}/crt%.S $(BASE)/usr/lib/%: $(TOOLCHAIN)/local/${TARGET}/lib/% | dirs cp -a $< $@ - -strip $@ + -$(STRIP) $@ $(BASE)/lib/libm.so: util/libm.c $(CC) -shared -nostdlib -fPIC -o $@ $<