From 788f190cb3c905f24b80c08aecac001236d9af77 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 25 Feb 2019 16:37:22 -0500 Subject: [PATCH] jjb: Add no-pie to kernel builds for modules Signed-off-by: Michael Jeanson --- scripts/lttng-modules/param-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 7d5eb6e..f50a5cd 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -427,6 +427,12 @@ LINUX_GIT_REF_REPO_DIR="$HOME/gitcache/linux-stable.git/" OBJ_STORE_URL="s3://jenkins" +# Older kernel Makefiles do not expect the compiler to default to PIE +KAFLAGS="-fno-pie" +KCFLAGS="-fno-pie -no-pie" +KCPPFLAGS="-fno-pie" +export KAFLAGS KCFLAGS KCPPFLAGS + cd "$WORKSPACE" # Create build directories -- 2.34.1