configure “--prefix” option for cross compiling
https://stackoverflow.com/questions/33410423/configure-prefix-option-for-cross-compiling--prefix is the path for working environment. Just use --prefix=/usr. You can check in which folder path make install command will install your binary by installing in DESTDIR. For example if you use --prefix=/usr and make install DESTDIR=/home/me/arm/build/target_fs, then the binaries will be installed in the folder /home/me/arm/build/target_fs/usr. And If you just run make install, then the binary will be installed in your prefix i.e. in "/usr".
Cross-compile: How to install with one prefix, and deploy with a different prefix?
https://stackoverflow.com/questions/6078086/cross-compile-how-to-install-with-one-prefix-and-deploy-with-a-different-prefi- configure will certainly do some sed in file, so you need to specify the final place
./configure --prefix=/ CC=[my-cross-compiler-gcc]
- makefile generated by automake have support of variable DESTDIR which is prepended to the installation path:
make DESTDIR=/var/install install
沒有留言:
張貼留言