我在Debian Wheezy主机上的Debian Lenny chroot中构建了gcc-4.9.0。拱门=阿梅尔(Wheezy和Lenny)。我使用了以下配置选项:
$PWD/../gcc-4.9.0/configure --prefix=/usr/local/GCC-4.9.0 --enable-languages=c,c++ --with-arch=armv4t --with-float=soft --enable-checking=release --enable-shared --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi LDFLAGS=-Wl,-no-keep-memory --disable-libjava
当我尝试构建一些库(在本示例中为libgcrypt)时,我无法构建共享库:
checking whether the /usr/local/GCC-4.9.0/bin/gcc linker (/usr/local/GCC-4.9.0/bin/gcc) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes`
对于卷曲:
gcc: error: ../lib/.libs/libcurl.so: No such file or directory
make[2]: *** [Makefile:923: curl] Error 1
我在构建gcc时还缺少一些配置选项吗?
这:
checking whether the /usr/local/GCC-4.9.0/bin/gcc linker (/usr/local/GCC-4.9.0/bin/gcc) supports shared libraries... no
很奇怪-链接程序通常应为ld
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句