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
This commit is contained in:
Jacques Lucke
2025-04-08 17:13:59 +02:00
parent 17b5ab6965
commit 86341ae826

View File

@@ -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:
*;
};