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
缘由: 为了编译 gd 扩展的依赖,遇到的编译问题,让人头大。遇到问题比较少的是 clang clang++
组合一: gcc g++ 需要链接 glibc ; 组合二: musl-gcc g++ ; debian 环境 和 alpine 环境 差异挺大的。 组合三: clang clang++ ;
备注: 也有可能是我不熟悉配置
The text was updated successfully, but these errors were encountered:
musl-gcc 在编译的时候理论上会比 clang 体积小一点,而且自然链接 musl-libc,解决问题起来可能会容易一点。不同发行版的差异这个都是可控的,我觉得不要紧。gcc g++ 链接 glibc 肯定不考虑。在 alpine 上默认的 gcc 就是 musl-gcc,可以做个 alias 或者传入时候改一下 cc 就行。
Sorry, something went wrong.
通过验证: 结果如下
./bin/spc build gd,zlib --cc=musl-gcc --cxx=g++ --build-cli --debug ./bin/spc build gd,zlib --cc=clang --cxx=clang++ --build-cli --debug
./bin/spc build gd,zlib --cc=gcc --cxx=g++ --build-cli --debug ./bin/spc build gd,zlib --cc=clang --cxx=clang++ --build-cli --debug
debian 要使用 musl-libc 使用的编译器 musl-gcc alpine 要使用 musl-libc 使用的编译器 gcc (直接些gcc 就行)
在debian 和 alpine 是使用编译器 clang 是一样的
No branches or pull requests
缘由: 为了编译 gd 扩展的依赖,遇到的编译问题,让人头大。遇到问题比较少的是 clang clang++
组合一: gcc g++ 需要链接 glibc ;
组合二: musl-gcc g++ ; debian 环境 和 alpine 环境 差异挺大的。
组合三: clang clang++ ;
备注: 也有可能是我不熟悉配置
The text was updated successfully, but these errors were encountered: