]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Disable some features for their meson counterpart
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 8 Aug 2023 11:28:02 +0000 (13:28 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:33 +0000 (13:28 +0100)
meson.build
meson/hardening/meson.build
meson_options.txt

index 6db64c85f5d23a8452f432b2b94288808b2db6ef..3a8209c75853ae19f67703564c08085664bb5e04 100644 (file)
@@ -66,9 +66,11 @@ subdir('meson/gss-tsig')                 # GSS-TSIG
 subdir('meson/auth-tools')               # Tools
 subdir('meson/ixfrdist')                 # Ixfrdist
 subdir('meson/systemd')                  # Systemd and unit file handling
-subdir('meson/code-coverage')            # Code coverage
+# TODO Use meson's -Db_coverage option?
+# subdir('meson/code-coverage')            # Code coverage
 subdir('meson/auto-var-init')            # Automatic Variable Initialization
-subdir('meson/sanitizers')               # Sanitizers
+# TODO Use meson's -Db_sanitize option?
+# subdir('meson/sanitizers')               # Sanitizers
 
 # Find or generate pdns/dnslabeltext.cc
 if not ragel.found() and not fs.exists('pdns/dnslabeltext.cc')
index 6020bc1ce44baad0bbf9184482ab8514fc212cba..349df78dd03ed0a2c77719668e5b19d85d11d5ea 100644 (file)
@@ -4,7 +4,8 @@ opt_hardening = get_option('hardening')
 if opt_hardening.enabled() or opt_hardening.auto()
   hardening_features = []
 
-  subdir('pie')                 # PIE
+  # TODO Use meson's -Db_pie and -Db_staticpic options?
+  # subdir('pie')                 # PIE
   subdir('stack-prot')          # Stack Protector
   subdir('stack-smashing-prot') # Stack-Smashing Protection
   subdir('fortify-source')      # Fortify Source
index cdb64da88472707b778c10a11db817a4b38e9abe..75c71e43b086c098933fa13c8117e50330cfbce4 100644 (file)
@@ -46,10 +46,12 @@ option('tools-ixfrdist', type: 'boolean', value: false, description: 'Build ixfr
 option('lua-records', type: 'boolean', value: true, description: 'Support Lua records')
 option('systemd-service-user', type: 'string', value: 'pdns', description: 'Systemd service user (setuid and unit file; user is not created)')
 option('systemd-service-group', type: 'string', value: 'pdns', description: 'Systemd service group (setgid and unit file; group is not created)')
-option('code-coverage', type: 'boolean', value: false, description: 'Enable code coverage')
+# TODO Use meson's -Db_coverage option?
+# option('code-coverage', type: 'boolean', value: false, description: 'Enable code coverage')
 option('auto-var-init', type: 'combo', value: 'disabled', choices: ['zero', 'pattern', 'disabled'], description: 'Enable initialization of automatic variables')
-option('sanitizer-address', type: 'boolean', value: false, description: 'Enable the Address Sanitizer')
-option('sanitizer-memory', type: 'boolean', value: false, description: 'Enable the Memory Sanitizer')
-option('sanitizer-thread', type: 'boolean', value: false, description: 'Enable the Thread Sanitizer')
-option('sanitizer-leak', type: 'boolean', value: false, description: 'Enable the Leak Sanitizer')
-option('sanitizer-undefined', type: 'boolean', value: false, description: 'Enable the Undefined Behavior Sanitizer')
+# TODO Use meson's -Db_sanitize option?
+# option('sanitizer-address', type: 'boolean', value: false, description: 'Enable the Address Sanitizer')
+# option('sanitizer-memory', type: 'boolean', value: false, description: 'Enable the Memory Sanitizer')
+# option('sanitizer-thread', type: 'boolean', value: false, description: 'Enable the Thread Sanitizer')
+# option('sanitizer-leak', type: 'boolean', value: false, description: 'Enable the Leak Sanitizer')
+# option('sanitizer-undefined', type: 'boolean', value: false, description: 'Enable the Undefined Behavior Sanitizer')