Month: March 2019
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
./xxx: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.22′ not found (required by ./xxx)
Copy libstdc++.so.6.0.24 from cross compiler (7.3.1)
cd /usr/lib mv libstdc++.so.6 libstdc++.so.6.bak ln -s libstdc++.so.6.0.24 libstdc++.so.6 chmod 777 libstdc++.so.6
Now, it will be like this !
root@imx6ul7d:/usr/lib# ls -al libstdc++.so.6* lrwxrwxrwx 1 root root 19 Sep 16 23:03 libstdc++.so.6 -> libstdc++.so.6.0.24 -rwxr-xr-x 1 root root 1240644 Sep 9 02:04 libstdc++.so.6.0.21 -rwxrwxrwx 1 root root 9459568 Sep 16 23:35 libstdc++.so.6.0.24 lrwxrwxrwx 1 root root 19 Jan 1 1970 libstdc++.so.6.bak -> libstdc++.so.6.0.21 -rwxr-xr-x 1 root root 9459568 Sep 16 23:11 libstdc++.so.6.bak_24