Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示: macOS 链接时libxslt 需要添加 -framework CoreFoundation -framework SystemConfiguration 原因所在 #58

Closed
jingjingxyk opened this issue Mar 14, 2023 · 0 comments

Comments

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Mar 14, 2023

macOS 反复验证:
发现 依赖库libxslt 默认启用 --with-python --with-crypto --with-profiler --with-plugins --with-debugger
其中 crypto 依赖 libunistring 、libgcrypt 进一步依赖 -framework SystemConfiguration

根源: -lintl -Wl,-framework -Wl,CoreFoundation

gettext库包含intl
coreutils库包含libunistring

解决办法:

    ./configure \
    --prefix={$libxslt_prefix} \
    --enable-static=yes \
    --enable-shared=no \
    --with-libxml-libs-prefix={$libxml2_prefix} \
    --without-python \
    --without-crypto \
    --without-profiler \
    --without-plugins \
    --without-debugger

解决以后,链接参数就可以不需要

-framework CoreFoundation -framework SystemConfiguration 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant