<codeclass="thtwo"><spanclass="dastx">##</span> this is where the x-compiler package has been built to install to
<b>XGCC_DIR</b>=/opt/cross-pi-gcc
<b>XGCC_DIR</b>=${XGCC_DIR:-/opt/cross-pi-gcc}
<spanclass="dastx">##</span> this is where the sysroot has been set in the x-compiler tree
<b>SYSROOT</b>=$XGCC_DIR/sysroot
<b>SYSROOT</b>=${SYSROOT:-$XGCC_DIR/sysroot}
</code>
<spanclass="dastx">##</span> The arm libs and headers needed for cross compiling need to be installed in SYSROOT.
<spanclass="dastx">##</span> They can be [1] directly installed to $SYSROOT if the cross compiler is to be a permanent addition to the system, otherwise [2] installed to a directory [<spanclass="comment">/path_to_arm_current_sysroot_directory</span>] on a storage medium through bind-mounting it to $SYSROOT for the actual build process: