クエリについてHow the C library works in cross-tools
構成中にクロスツールチェーンをコンパイルおよび構築する場合、sysroot が提供されます。
お気に入り--with-sysroot=${CLFS_CROSS_TOOLS}
--with-sysroot
--with-sysroot=dir
Tells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. Target system headers, libraries and run-time object files will be searched for in there. More specifically, this acts as if --sysroot=dir was added to the default options of the built compiler. The specified directory is not copied into the install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to the GCC binaries if the installation tree is moved.
/lib /usr/include
そのため、コンパイル時に /Toolchain/(libc) および (include files) を検索する代わりに検索します。
で確認できます
arm-linux-gnueabihf-gcc -print-sysroot
これは、 libc を探す場所を示しています。
また
arm-linux-gnueabihf-gcc -print-search-dirs
鮮明な画像を提供します