1
0
forked from rosa/hakurei

internal/rosa/zlib: compile with -fPIC

For static linking into shared libraries. This was missed when migrating to CMake.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-30 15:55:46 +09:00
parent d23c4ecc7c
commit 63c3c30b23

View File

@@ -15,6 +15,7 @@ func (t Toolchain) newZlib() (pkg.Artifact, string) {
Cache: []KV{
{"CMAKE_BUILD_TYPE", "Release"},
{"CMAKE_C_FLAGS", "-fPIC"},
{"ZLIB_BUILD_TESTING", "OFF"},
{"ZLIB_BUILD_SHARED", "ON"},
{"ZLIB_BUILD_STATIC", "ON"},