checking if a binary compiled with “-static”

后端 未结 3 1733
独厮守ぢ
独厮守ぢ 2021-02-19 05:20

I have a binary file in linux. How can I check whether it has been compiled with \"-static\" or not?

3条回答
  •  滥情空心
    2021-02-19 05:48

    ldd /path/to/binary should not list any shared libraries if the binary is statically compiled.

提交回复
热议问题