I'm building a cross toolchain for an i686 linux robotics system. I am building the toolchain using my x86_64 Ubuntu 14.04 system. After building the toolchain for the target i686-linux-gnu
, I end up with a directory in my build directory with the name i686-linux-gnu
. This directory appears to have a number of folders that go in the root directory of the target system:
- build_directory
- i686-linux-gnu
- bin
- etc
- include
- lib
- libexec
- sbin
- share
- var
My assumption is that these are the supporting files that correspond with the toolchain that was built, and that these files are intended to exist on the target system
I have tried simply copying these directories into the root /
of the target system, overwriting any existing files. This came with disastrous results. For example, I was unable to run ls
or sudo
due to missing/incorrect library search paths. So I now have two questions:
Am I deploying these libraries to the target system correctly? If not, what is the correct deployment procedure?
If this is the correct deployment procedure, why would my search paths become broken? Shouldn't the system continue to use the default search paths
/lib
,/usr/lib
, etc?
My toolchain build script is available as well on pastebin (due to the size).