jjb: Add no-pie to kernel builds for modules
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 25 Feb 2019 21:37:22 +0000 (16:37 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 25 Feb 2019 21:37:22 +0000 (16:37 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index 7d5eb6eed4d5d341623384dad2f6cc96d5f5a18d..f50a5cd6f8ea9293a3ed868142f818fa24a966c9 100644 (file)
@@ -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
This page took 0.023043 seconds and 4 git commands to generate.