]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3731] Added b_asneeded
authorFrancis Dupont <fdupont@isc.org>
Sun, 16 Mar 2025 09:23:01 +0000 (10:23 +0100)
committerAndrei Pavel <andrei@isc.org>
Mon, 17 Mar 2025 10:16:32 +0000 (12:16 +0200)
meson.build

index 75216c8d9bd7b8fac0b6ddbe7996506b03c806bb..cb1c37154a72004c04158da1734c632856789434 100644 (file)
@@ -19,7 +19,7 @@ project(
     meson_version: '>=1.1.0',
     license: 'MPL-2.0',
     license_files: ['COPYING'],
-    default_options: ['b_pch=false', 'b_pie=true'],
+    default_options: ['b_asneeded=true', 'b_pch=false', 'b_pie=true'],
 )
 
 cpp = meson.get_compiler('cpp')
@@ -814,9 +814,13 @@ configure_file(
 
 #### Build Starts Here
 
+# LIBS_BUILT_SO_FAR makes sense because the linker is called with
+# the --as-needed flag so ignores (i.e. does not link) unused libraries.
 LIBS_BUILT_SO_FAR = []
+
 TARGETS_GEN_MESSAGES = []
 TARGETS_GEN_PARSER = []
+
 subdir('tools')
 subdir('src')
 subdir('fuzz')