Seems like ndk-build strips debug symbols when it copies .so from obj to lib folder. Is there a way to tell ndk-build not to strip the debug symbols?
In your Android.mk you could override cmd-strip
to do what you want, e.g. nothing:
# Don't strip debug builds
ifeq ($(APP_OPTIM),debug)
cmd-strip :=
endif
Adding this to Application.mk
solved it for me:
APP_STRIP_MODE := none
So, taking suggestions from @Michael and @gmetal:
ifeq ($(NDK_DEBUG),1)
APP_STRIP_MODE := none
endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With