]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: pools: only detect link-time jemalloc on ELF platforms
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Nov 2021 14:55:55 +0000 (15:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Nov 2021 15:13:17 +0000 (16:13 +0100)
commit781f07a62064dbaefc362c1077d6a5382a186893
tree0ce9940da654347a890cc23aa3b7d740d8f0dea7
parentefd954793e60131932c61883d0869c7912a5d12c
BUILD: pools: only detect link-time jemalloc on ELF platforms

The build broke on Windows and MacOS after commit ed232148a ("MEDIUM:
pool: refactor malloc_trim/glibc and jemalloc api addition detections."),
because the extern+attribute(weak) combination doesn't result in a really
weak symbol and it causes an undefined symbol at link time.

Let's reserve this detection to ELF platforms. The runtime detection using
dladdr() remains used if defined.

No backport needed, this is purely 2.6.
src/pool.c