交叉静态编译带OpenSSL的curl工具

1、下载openssl-0.9.8e 版本的openssl,其他版本可能太新,curl版本太久有些函数已经不支持
,解压进如目录下执行配置./config no-asm -fPIC no-shared --prefix=/home/linzb/workspace/openssl/ssl,
然后进入Makefile中修改一些变量为
PLATFORM=mips
CC= mips-linux-uclibc-gcc
AR=mips-linux-uclibc-ar $(ARFLAGS) r
RANLIB= mips-linux-uclibc-ranlib
然后再执行make  ,make install 会把OpenSSL安装在/home/linzb/workspace/openssl/ssl目录下

2、安装过程如果出现POD document had syntax errors at /usr/bin/pod2man line 71.
执行sudo rm /usr/bin/pod2man解决

3、使用realtek的sdk中自带的rts390x_sdk_v2.3/users/network/curl 版本为7.53.1
进入目录下配置./configure --host=mips-linux-uclibc LDFLAGS=-static --with-ssl=/home/linzb/workspace/openssl/ssl/
然后执行make,生成curl 在src目录下

4、裁剪使用的配置命令

./config -fPIC --prefix=/home/linzb/workspace/openssl/ssl no-shared no-zlib no-asm no-threads no-sse2 no-comp no-dso no-gmp no-rfc3779 no-krb5 no-rc5 no-zlib-dynamic no-hw no-cipher no-md2 no-md4 no-mdc2 no-rc2 no-idea no-camellia no-ec no-ecdsa no-ecdh  no-ripemd  no-rc4 no-bf no-cast no-ssl2 no-ssl3 no-tls no-perlasm

./configure --host=mips-linux-uclibc LDFLAGS=-static --with-ssl=/home/linzb/workspace/openssl/ssl/ --disable-ftp --disable-imap --disable-ldaps --disable-pop3 --disable-proxy   --disable-rtsp --disable-smtp   --disable-file  --disable-ldap  --disable-zlib  --without-libidn  --disable-dict --disable-telnet --disable-tftp --disable-smb --disable-smtp --disable-gopher --disable-manual --disable-libcurl-option --disable-ipv6 --disable-versioned-symbols --disable-threaded-resolver --disable-pthreads --disable-verbose --disable-sspi  --disable-crypto-auth --disable-ntlm-wb --disable-tls-srp  --disable-unix-sockets --disable-cookies  --disable-soname-bump --without-PACKAGE --without-winssl  --without-darwinssl --without-gnutls  --without-polarssl --without-mbedtls --without-cyassl --without-nss  --without-axtls --without-ca-bundle --without-ca-path --without-ca-fallback --without-libpsl --without-libmetalink --without-libssh2 --without-librtmp  --without-winidn --without-libidn2 --without-nghttp2 --without-zsh-functions-dir

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值