Bugzilla Automation <[email protected]> has asked freebsd-desktop (Team)
<[email protected]> for maintainer-feedback:
Bug 292087: zig 0.15.2 STATIC build requires remove of -licu
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292087
--- Description ---
The recent upgrade to zig 0.15.2 removed the dependency on icu. The linking
when STATIC option is defined still has flags for icu and therefore fails.
Removal of these flags (as per patch below) fixes this issue.
diff --git a/lang/zig/Makefile b/lang/zig/Makefile
index 4e86abb5c846..81221e436e0b 100644
--- a/lang/zig/Makefile
+++ b/lang/zig/Makefile
@@ -34,7 +34,7 @@ STATIC_DESC= sets ZIG_STATIC to avoid 800MiB LLVM runtime
dependency
STATIC_RUN_DEPENDS_OFF= llvm${_LLVM_VER}>=0:devel/llvm${_LLVM_VER}
STATIC_CMAKE_BOOL= ZIG_STATIC
-STATIC_LDFLAGS= -licudata -licuuc -llzma -lm -lmd -lxml2 -lz
-lzstd
+STATIC_LDFLAGS= -llzma -lm -lmd -lxml2 -lz -lzstd
STATIC_LIB_DEPENDS+= libxml2.so:textproc/libxml2
_LLVM_VER= 20