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.
の代替glibcインストールでローダーを使用するため/usr/testに、ローダー パス/lib/ld-linux-x86-64.so.2をgcc 仕様ファイルのセクションの/usr/test/lib/ld-linux-x86-64.so.2下に変更しました。とも指摘しました。*linkCPATH/usr/test/lib/includeLIBRARY_PATH/usr/test/lib
/usr/test
/lib/ld-linux-x86-64.so.2
/usr/test/lib/ld-linux-x86-64.so.2
*link
CPATH
/usr/test/lib/include
LIBRARY_PATH
/usr/test/lib
代替glibcを使用する正しい方法ですか?
正しいかどうかはわかりませんが、この種のテスト用に chroot 環境をセットアップしたいと思います。代わりに LD_PRELOAD メカニズムを使用することもできます。