クロスコンパイル用ツールチェイン /opt/ytomino 以下に置く ターゲット環境のSDKもsysrootとして指定可能な形で /opt/ytomino/$(TARGET) 以下に置く コピーしてきた後シンボリックリンク等を調整する 以下は例 /opt/ytomino/x86_64-apple-darwin17/SDKSettings.plist /opt/ytomino/x86_64-apple-darwin17/System/Library /opt/ytomino/x86_64-apple-darwin17/usr/include /opt/ytomino/x86_64-apple-darwin17/usr/lib /opt/ytomino/x86_64-linux-gnu/usr/include /opt/ytomino/x86_64-linux-gnu/usr/lib Linuxは libc.so, libm.so, libpthread.so がテキストファイルになっており他のファイルへの パスが書かれているため編集が必要 /opt/ytomino/x86_64-pc-freebsd11/usr/include /opt/ytomino/x86_64-pc-freebsd11/usr/lib /opt/ytomino/i686-w64-mingw32/mingw32/include /opt/ytomino/i686-w64-mingw32/mingw32/lib /opt/ytomino/x86_64-w64-mingw32/mingw64/include /opt/ytomino/x86_64-w64-mingw32/mingw64/lib https://github.com/ytomino/drake/wiki/Setup-cross-compilers も参照