【问题标题】:configure: error: unrecognized option: -static-libgcc配置:错误:无法识别的选项:-static-libgcc
【发布时间】:2023-03-29 21:55:01
【问题描述】:

我正在尝试编译 zbar-0.10 以静态链接到 MinGW 依赖项,因此它不需要 libgcc_s_dw2-1.dlllibwinpthread-1.dlllibstdc++-6.dll

根据MinGW .exe requires a few gcc dll's regardless of the code? 接受的答案,我尝试将-static -static-libgcc -static-libstdc++ 添加到我的./configure 脚​​本参数中:

./configure -static-libgcc -static-libstdc++ -static -lpthread --without-qt --without-gtk --without-python --without-imagemagick

但是我收到了这个错误:

配置:错误:无法识别的选项:-static-libgcc

传递给配置脚本的正确参数是什么,以便 MinGW 依赖项静态链接到 ZBar?

【问题讨论】:

  • 可能你的MinGW版本不支持?你在使用 libtool 吗?如果是,this man 应该会有所帮助。

标签: c mingw static-linking configure zbar


【解决方案1】:

-static 选项足以满足您在使用 MinGW 工具链时想要实现的目标。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-06-26
    • 1970-01-01
    • 1970-01-01
    • 2016-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多