mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
macOS: Fix linking statically
`__attribute__((constructor))` does not mark the symbol as used, so the linker ends up dead-stripping the symbol when linked statically. Adding the `used` attribute fixes that.
This commit is contained in:
parent
5afff2e44e
commit
6a32893213
1 changed files with 1 additions and 0 deletions
|
|
@ -434,6 +434,7 @@ zone_promote(void) {
|
|||
}
|
||||
|
||||
JEMALLOC_ATTR(constructor)
|
||||
JEMALLOC_ATTR(used)
|
||||
void
|
||||
zone_register(void) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue