From 6acdf06421b763a670302a34c0a7ff3463c820cf Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 2 Sep 2024 18:58:35 +0100 Subject: [PATCH] meson: enable PIE by default 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 Link: https://github.com/kmod-project/kmod/pull/86 Signed-off-by: Lucas De Marchi --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 65f4511e..edfaa0d2 100644 --- a/meson.build +++ b/meson.build @@ -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', -- 2.47.3