Libtool:链接:无法推断标记的配置

Ars*_*han 5 c linux libtool

我正在尝试为ARM交叉编译linphone。我使用配置

./configure --host=arm-linux-gnueabi --with-gnu-ld --disable-static --disable-glib --with-osip=/home/user/linphone_wheezy --with-readline=/home/user/linphone_wheezy SPEEX_CFLAGS="-I/home/user/linphone_wheezy/include" SPEEX_LIBS="-L/home/user/linphone_wheezy/lib -lspeex" SPEEXDSP_CFLAGS="-I/home/user/linphone_wheezy/include" SPEEXDSP_LIBS="-L/home/user/linphone_wheezy/lib -lspeexdsp" CC=$CROSS_TOOLCHAIN/bin/arm-linux-gnueabi-gcc --disable-video --enable-gtk_ui=no
Run Code Online (Sandbox Code Playgroud)

配置脚本成功执行,但是当我运行make时,链接时出现以下错误:

libtool: link: unable to infer tagged configuration
libtool: link: specify a tag with `--tag'
Run Code Online (Sandbox Code Playgroud)

我尝试添加

--tag=CC and --tag=LD
Run Code Online (Sandbox Code Playgroud)

但没有成功。有人可以给这个错误一些提示吗?

小智 0

默认命令:/bin/sh libtool ...

我编辑了 makefile 中定义的 libtool 的哪一行libtool --tag=CXX

CXX 代表 C++,CC 代表 C

参考: https: //www.gnu.org/software/libtool/manual/html_node/Tags.html