From: Francis Dupont Date: Sun, 16 Mar 2025 09:23:01 +0000 (+0100) Subject: [#3731] Added b_asneeded X-Git-Tag: Kea-2.7.7~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faf59c47df2432772df8ef0df66fcfb71414bbb4;p=thirdparty%2Fkea.git [#3731] Added b_asneeded --- diff --git a/meson.build b/meson.build index 75216c8d9b..cb1c37154a 100644 --- a/meson.build +++ b/meson.build @@ -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')