Ubuntu 16.04 x86_64 arm-xm-linux.tar.gz
$ wget https://www.openssl.org/source/openssl-1.1.0d.tar.gz
$ tar xvf openssl-1.1.0d.tar.gz
$ cd openssl
$ ./Configure linux-generic32 \
no-shared \
no-asm \
no-async \
--prefix=/your/install/path/xm/openssl_1.1.0d \
--cross-compile-prefix=arm-xm-linux-
-shared
选项
为arm-xm-linux-ulibcgnueabi
,没有提供GNU C的ucontext库所以需要添加此选项,否则编译会报错
./libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
./libcrypto.so: undefined reference to `getcontext'
./libcrypto.so: undefined reference to `setcontext'
./libcrypto.so: undefined reference to `makecontext'
make
make install