aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-30 15:55:46 +0900
committerOphestra <cat@gensokyo.uk>2026-04-30 15:55:46 +0900
commit63c3c30b23a7063dce562cbf37c52d673fb0b2e9 (patch)
tree558a23092799d9c891b1de0204e1640f1be38d48 /internal
parentd23c4ecc7ce0f9aa1c7b6322636235b607c310c8 (diff)
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>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/zlib.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/rosa/zlib.go b/internal/rosa/zlib.go
index 7ec605ba..ab1ae7ea 100644
--- a/internal/rosa/zlib.go
+++ b/internal/rosa/zlib.go
@@ -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"},