Linux static linking is dead?

前端 未结 6 2038
野性不改
野性不改 2020-11-28 19:42

In fact, -static gcc flag on Linux doesn\'t work now. Let me cite from the GNU libc FAQ:

2.22. Even statically linked programs need s

6条回答
  •  不知归路
    2020-11-28 19:50

    Just because you have to dynamically link to the NSS service doesn't mean you can't statically link to any other library. All that FAQ is saying is that even "statically" linked programs have some dynamically-linked libraries. It's not saying that static linking is "impossible" or that it "doesn't work".

提交回复
热议问题