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.
elf共有ライブラリを生成しました。elfヘッダーにバージョン(1.2.2など)をスタンプしたい。gccのリンカーフラグを使用してそれを行うことはできますか?そうでない場合、バージョンにスタンプを付ける他の方法はありますか?
ニーズに合ったオプションがあるかどうかを確認ldし、それを GCC オプションで渡します-Wl。
ld
-Wl
共有オブジェクトの場合は、 を使用できます-Wl,-soname,libmyname.so.1.2.3。
-Wl,-soname,libmyname.so.1.2.3