From: Fred Morcos Date: Tue, 22 Aug 2023 13:24:42 +0000 (+0200) Subject: Meson: Fix hardening not working when PIE is disabled X-Git-Tag: rec-5.1.0-alpha1~80^2~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=affc8124383c141e7be0e93ce9e757b9d21dc9b7;p=thirdparty%2Fpdns.git Meson: Fix hardening not working when PIE is disabled --- diff --git a/meson/hardening/meson.build b/meson/hardening/meson.build index c7b1f49d5b..b562f02e17 100644 --- a/meson/hardening/meson.build +++ b/meson/hardening/meson.build @@ -5,7 +5,7 @@ if opt_hardening.enabled() or opt_hardening.auto() # PIE opt_pie = get_option('b_pie') - if not opt_pie + if not opt_pie and opt_hardening.enabled() error('Hardening was requested but building position independent executables is disabled') endif hardening_features += [[opt_pie, 'Building position independent executables (PIEs)']]