From 0d95674c368dba96b3004f9d92cfb939602e0dd2 Mon Sep 17 00:00:00 2001 From: Marcin Kulisz Date: Fri, 28 Oct 2016 15:16:38 +0100 Subject: [PATCH] Disabling PIE during ixgbevf compilation for AWS + enhanced network instances Stretch upwards. * For GCC >=6 in Debian PIE (Position Independent Executable) has being activated it is causing enhanced network driver for AWS images to fail at compilation time due to incompatibility with PIE options for the kernel * To learn what PIE is read docs at https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options --- bootstrapvz/providers/ec2/tasks/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrapvz/providers/ec2/tasks/network.py b/bootstrapvz/providers/ec2/tasks/network.py index 7058b60..e32eafd 100644 --- a/bootstrapvz/providers/ec2/tasks/network.py +++ b/bootstrapvz/providers/ec2/tasks/network.py @@ -106,7 +106,7 @@ class InstallEnhancedNetworking(Task): with open(os.path.join(module_path, 'dkms.conf'), 'w') as dkms_conf: dkms_conf.write("""PACKAGE_NAME="ixgbevf" PACKAGE_VERSION="%s" -CLEAN="cd src/; make clean" +CLEAN="cd src/; sed -i '1s/^/EXTRA_CFLAGS := -fno-pie/' Makefile && make clean" MAKE="cd src/; make BUILD_KERNEL=${kernelver}" BUILT_MODULE_LOCATION[0]="src/" BUILT_MODULE_NAME[0]="ixgbevf"