configure “--prefix” option for cross compiling
Which path should I pass to the --prefix option when doing cross compiling: should I specify the path on my build machine or the path on the target platform? Suppose I build the code into /home/me/arm/build/target_fs/usr , after that I copy the files into my target platform where they will be located at /usr . Should I use --prefix=/home/me/arm/build/target_fs/usr or just --prefix=/usr and then make install DESTDIR=/home/me/arm/build/target_fs ? I thought that the --prefix is not the path for build but the path for running environment (i.e. the path on target platform). The answers here makes