使用调试符号从源代码编译glibc [英] compiling glibc from source with debug symbols

查看:76
本文介绍了使用调试符号从源代码编译glibc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用调试符号从源代码编译glibc.

I need to compile glibc from source with debug symbols .

1.在哪里为此指定"-g"选项

1.Where do i specify the '-g' option for this

2.以后我如何使示例代码链接到此特定的glibc,而不是系统上安装的glibc?

2.How do i later make a sample code link to this particular glibc rather than the one installed on my system?

推荐答案

我需要使用调试符号从源代码编译glibc

I need to compile glibc from source with debug symbols

您将很难编译没有调试符号的glibc .默认的 ./configure&&make 在编译行上具有 -g .

You will have hard time compiling glibc without debug symbols. A default ./configure && make will have -g on compile line.

以后我如何使示例代码链接到此特定的glibc,而不是系统上安装的glibc?

How do i later make a sample code link to this particular glibc rather than the one installed on my system?

这有些棘手,并在此处回答.

This is somewhat tricky, and answered here.

这篇关于使用调试符号从源代码编译glibc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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