]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: fix linking with jemalloc 1786/head
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 8 Jan 2026 11:38:06 +0000 (12:38 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 8 Jan 2026 11:51:22 +0000 (12:51 +0100)
This is a partial revert of a13235612644
which haven't reached any tags, fortunately.

I'm not sure why this breaks the configure phase in my case
> meson.build:171:33: ERROR: C shared library 'jemalloc' not found
but I looked properly into docs and it wouldn't do what we wanted anyway:
https://mesonbuild.com/Reference-manual_returned_compiler.html#find_library_static

meson.build

index 9610589de74208213a14df34f48ec0d28f1c8a72..301fb0db581dc1ba2eb023529b9dfca3f1e0654f 100644 (file)
@@ -171,7 +171,9 @@ endif
 malloc = meson.get_compiler('c').find_library(
   malloc_name,
   required: get_option('malloc') == 'jemalloc',
-  static: false, # static linking would most likely cause issues.
+  # Static linking would most likely cause issues.
+  # Unfortunately even `static: false` option won't do that.
+  # Fortunately it seems unlikely that dynamic wouldn't be found and static would be.
 )
 
 summary({'sendmmsg': sendmmsg,