不剥离调试符号ndk-build [英] NOT strip debug symbols ndk-build

查看:136
本文介绍了不剥离调试符号ndk-build的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当ndk-build将.so从obj复制到lib文件夹时,似乎会剥离调试符号.有没有办法告诉ndk-build不要剥离调试符号?

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?

推荐答案

在您的Android.mk中,您可以覆盖cmd-strip以执行所需的操作,例如没什么:

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

这篇关于不剥离调试符号ndk-build的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆