Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
supertuxkart や regnum online などの一部の Linux アプリには静的バイナリがあり、ダウンロード後は共有ライブラリをインストールしなくても動作します。すべてのディストリビューションで。どうすればそのようなアプリを作成できますか?
すべてのリソースが実行可能ファイルに含まれていることを確認し、実行可能ファイルを静的にリンクします。
gcc -o foo main.o -static -lbaz -lbar
ただし、これには欠点もあります。動的リンクを検索します。