change Mac sim archive operate from replace to quick insertion

'rcS' will case files that has duplicate name been replaced.
so on the Mac platform we use 'q' instead of 'r' to achieve an
effect similar to '-P'

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-09-12 15:06:23 +08:00 committed by Petro Karashchenko
parent 4aa3c9cd73
commit 225bd13381
2 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ CPP = $(CROSSDEV)cc -E -P -x c
LD = $(CROSSDEV)ld
ifeq ($(CONFIG_HOST_MACOS),y)
STRIP = $(CROSSDEV)strip
AR = $(TOPDIR)/tools/macar-rcs.sh
AR = $(TOPDIR)/tools/macar-qcs.sh
else
STRIP = $(CROSSDEV)strip --strip-unneeded
AR = $(CROSSDEV)ar rcsP

View File

@ -39,6 +39,6 @@
# https://opensource.apple.com/source/cctools/cctools-949.0.1/misc/
set -e
ar rcS "$@"
ar qcS "$@"
# Note: the following line is using bash process substitution
ranlib -no_warning_for_no_symbols "$1" 2> >(grep -F -v "the table of contents is empty")