We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
brotli 链接时,有链接顺序要求, 需要先链接 brotlicommon ,然后链接 brotlienc ,brotlidec
参考文档:
https://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking
https://bbs.huaweicloud.com/blogs/373470
https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html
The text was updated successfully, but these errors were encountered:
上面的办法,试了又试,发现解决不了问题。
最后发现是编译bug : #298
Sorry, something went wrong.
macos clang 不支持 -Wl,–whole-archive -Wl,–start-group 和 -Wl,–end-group -Wl,-no-whole-archive
解决办法:
$p->withExportVariable('FREETYPE2_CFLAGS', '$(pkg-config --cflags --static libbrotlicommon libbrotlidec libbrotlienc freetype2 zlib libpng)'); $p->withExportVariable('FREETYPE2_LIBS', '$(pkg-config --libs --static libbrotlicommon libbrotlidec libbrotlienc freetype2 zlib libpng)');
No branches or pull requests
brotli 链接时,有链接顺序要求, 需要先链接 brotlicommon ,然后链接 brotlienc ,brotlidec
参考文档:
https://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking
https://bbs.huaweicloud.com/blogs/373470
https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html
The text was updated successfully, but these errors were encountered: