【发布时间】:2021-02-27 11:01:14
【问题描述】:
我正在为手臂板交叉编译 curl 库。 所以我像这样在 curl 库目录中使用配置脚本文件配置 Makefile。
./configure --disable-static --enable-shared --with-ssl=/tmp/openssl --prefix=/tmp/curl --host=arm
但结果总是静态库。我该如何解决?
配置结果
Host setup: arm-unknown-none
Install prefix: /tmp/curl
Compiler: arm-linux-gnueabihf-gcc
CFLAGS: -Werror-implicit-function-declaration -O2 -Wno-system-headers -pthread
CPPFLAGS: -isystem /tmp/openssl/include -DOPENSSL_SUPPRESS_DEPRECATED
LDFLAGS: -L/tmp/openssl/lib
LIBS: -lssl -lcrypto -lssl -lcrypto
curl version: 7.73.0
SSL: enabled (OpenSSL v3+)
SSH: no (--with-{libssh,libssh2})
zlib: no (--with-zlib)
brotli: no (--with-brotli)
zstd: no (--with-zstd)
GSS-API: no (--with-gssapi)
TLS-SRP: enabled
resolver: POSIX threaded
IPv6: enabled
Unix sockets: enabled
IDN: no (--with-{libidn2,winidn})
Build libcurl: Shared=no, Static=yes
Built-in manual: enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
Code coverage: disabled
SSPI: no (--enable-sspi)
ca cert bundle: no
ca cert path: no
ca fallback: no
LDAP: no (--enable-ldap / --with-ldap-lib / --with-lber-lib)
LDAPS: no (--enable-ldaps)
RTSP: enabled
RTMP: no (--with-librtmp)
Metalink: no (--with-libmetalink)
PSL: no (libpsl not found)
Alt-svc: no (--enable-alt-svc)
HTTP2: no (--with-nghttp2)
HTTP3: no (--with-ngtcp2, --with-quiche)
ECH: no (--enable-ech)
Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS MQTT POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
Features: AsynchDNS HTTPS-proxy IPv6 NTLM NTLM_WB SSL TLS-SRP UnixSockets
【问题讨论】:
标签: curl makefile arm embedded cross-compiling