使用调试符号从源代码编译glibc [英] compiling glibc from source with debug symbols
问题描述
我需要使用调试符号从源代码编译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屋!