]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
meson: enable PIE by default
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Sep 2024 17:58:35 +0000 (18:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 3 Sep 2024 01:13:54 +0000 (20:13 -0500)
The autotools build has PIC enabled by default, as do we. Take this a
step further by also enabling PIE.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
meson.build

index 65f4511e6ee748e1c3ef7fbcd27eaf2b7725400b..edfaa0d2b7996a6ad7e9ed0006bf026d544b699e 100644 (file)
@@ -6,6 +6,7 @@ project(
   meson_version : '>=0.60.0',
   default_options : [
     'c_std=gnu11',
+    'b_pie=true',
     'warning_level=2',
     'prefix=/usr',
     'sysconfdir=/etc',