How to statically-link a complex program

前端 未结 4 884
傲寒
傲寒 2020-12-23 23:50

In Linux, downloaded a program source and want it to be statically linked. Have a huge Makefile there, I

./configure
make

to compile. preh

4条回答
  •  执念已碎
    2020-12-24 00:34

    Yeah, you need to edit the make file and add the -static parameter to gcc during the link.

提交回复
热议问题