【发布时间】:2019-11-16 09:17:56
【问题描述】:
我正在交叉编译 glibc 以在自定义 Linux 系统中使用。我只需要共享 glibc 库,所以我试图阻止 glibc 构建静态库,例如“libc.a”。我曾尝试使用“--disable-static”标志,但这似乎不起作用。
我当前的配置命令:
../configure \
CFLAGS="-O2" \
--host=arm-linux-gnueabihf \
--prefix= \
--includedir=/usr/include \
--libexecdir=/usr/libexec \
--datarootdir=/tmp \
--localstatedir=/tmp \
--with-__thread \
--with-tls \
--with-fp \
--with-headers=/opt/sysroot/usr/include \
--without-cvs \
--without-gd \
--enable-kernel=3.18.0 \
--enable-stack-protector=strong \
--enable-shared \
--enable-add-ons=no \
--enable-obsolete-rpc \
--disable-profile \
--disable-debug \
--disable-sanity-checks \
--disable-static \
--disable-werror
【问题讨论】: