]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Fix hardening not working when PIE is disabled
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 22 Aug 2023 13:24:42 +0000 (15:24 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:46 +0000 (13:28 +0100)
meson/hardening/meson.build

index c7b1f49d5ba7a04bd50c6a0d1c59291012f70300..b562f02e172a2e7f61f8acdc9b84e1ac75eb9028 100644 (file)
@@ -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)']]