Cross compile wget with openssl for ARM

Config OpenSSL

tar xvf openssl-1.1.1b.tar.gz 
cd openssl-1.1.1b/
mkdir __install
./config --prefix=$PWD/__install no-asm shared

Edit Makefile

PLATFORM=linux-armv4
CROSS_COMPILE=arm-linux-gnueabihf-
delete "-m32" "-m64"

Compile OpenSSL

make
make install

Config Wget && Make

tar zxvf wget-1.20.1.tar.gz
cd wget-1.20.1
./configure --prefix=$PWD/__install --host=arm-linux CC=arm-linux-gnueabihf-gcc --with-ssl=openssl --with-libssl-prefix=/root/Downloads/wget_arm/openssl-1.1.1b/__install --without-zlib
make 
make install

Leave a Reply

Your email address will not be published. Required fields are marked *