build: fix debug build problem

Remove strip command when lib_debug=1

Change-Id: I1203fcbfefb3b87080e9ba12ccbfb8018a008147
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2019-12-16 13:31:45 +08:00 committed by Greg Tucker
parent 936d05fc4f
commit e2b07bbd44

View File

@ -95,7 +95,12 @@ ifeq ($(arch),noarch)
endif
# arch=aarch64 build options
ASFLAGS_aarch64 = -c
ifeq ($(lib_debug),1)
ASFLAGS_aarch64 = -g -c
else
ASFLAGS_aarch64 = -c
endif
ARFLAGS_aarch64 = cr $@
ifeq ($(arch),aarch64)
AS=$(CC) -D__ASSEMBLY__
@ -261,7 +266,9 @@ endif
$(lib_name): $(objs)
@echo " ---> Creating Lib $@"
@$(AR) $(ARFLAGS) $^
ifneq ($(lib_debug),1)
@$(STRIP_$(CC))
endif
# Target for shared lib