meta: Use 'strip' from toolchain

This commit is contained in:
K. Lange 2022-02-06 21:13:54 +09:00
parent e1e66bf6cd
commit 592fd1ca26

View File

@ -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 $@ $<