diff --git a/make.inc b/make.inc index 64b7b4f..60da17c 100644 --- a/make.inc +++ b/make.inc @@ -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