From 86341ae8263cd4bf95ab4b58bd84c6bde08ae5f2 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 8 Apr 2025 17:13:59 +0200 Subject: [PATCH] Fix: ASAN build does not link When building an ASAN build, I get this link error currently: ``` ld.lld: error: version script assignment of 'global' to symbol '__progname' failed: symbol not defined ld.lld: error: version script assignment of 'global' to symbol 'environ' failed: symbol not defined ``` The solution (as proposed by Brecht) is to change the symbol names into patterns with a wildcard. That way the linker does not fail when the symbols are not found. Pull Request: https://projects.blender.org/blender/blender/pulls/137153 --- source/creator/symbols_unix.map | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/creator/symbols_unix.map b/source/creator/symbols_unix.map index 09b191a8acd..f1850eecb73 100644 --- a/source/creator/symbols_unix.map +++ b/source/creator/symbols_unix.map @@ -36,9 +36,9 @@ global: realpath; sched_*; valloc; - /* needed on FreeBSD */ - __progname; - environ; + /* Needed on FreeBSD. Uses wildcard to avoid linker error when symbols are not found. */ + __progname*; + environ*; local: *; };