From: Michael Jeanson Date: Mon, 25 Feb 2019 21:37:22 +0000 (-0500) Subject: jjb: Add no-pie to kernel builds for modules X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=788f190cb3c905f24b80c08aecac001236d9af77;p=lttng-ci.git jjb: Add no-pie to kernel builds for modules Signed-off-by: Michael Jeanson --- 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