Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
;;
esac
+ if [ "$selected_cc" != "gcc-4.8" ]; then
+ # 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
+ fi
+
export CC="${CROSS_COMPILE:-}${selected_cc}"
cd -
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