Take you to explore the mysteries of cross-compiling zlib based on SAIL-AM335
Although the method of cross-compiling zlib is simple, it can be a bit confusing for beginners. Let's master this little knowledge together.
Cross-compile zlib
Tar xvf zlib-1.2.3.tar.gz-C.. / source
Cd.. / source/zlib-1.2.3
. / configure--prefix=/EmbSSH/install/zlib-1.2.3
Modify the following information in Makefile
CC=arm-none-linux-gnueabi-gcc
AR= arm-none-linux-gnueabi-ar rc
CPP = arm-none-linux-gnueabi-gcc-E
LDSHARED= arm-none-linux-gnueabi-gcc
Execution
Make
Make install