如果是想编译时带着’–with-lzma’。如果编译主机以及安装了liblzma,gdb的configure会自动配置enable。
Build GDB with LZMA, a compression library. (Done by default if liblzma is installed and found at configure time.) LZMA is used by GDB’s “mini debuginfo” feature, which is only useful on platforms using the ELF object file format. If your host does not have liblzma installed, you can get the latest version from ‘https://tukaani.org/xz/’.
以RHEL为例,就需要安装xz-devel rpm包。如果xz-devel没有安装,而且自己手动编译安装lzma的路径不是正式的目录(/usr/lib/; /usr/lib64),就需要指定lzma的安装目录,‘–with-lzma-prefix’,这样gdb的configure步骤,才能找到对应的头文件和so文件。
GDB can support debugging sections that are compressed with the LZMA library. *Note MiniDebugInfo: