From: Seth Forshee Date: Fri, 9 Dec 2016 19:21:56 +0000 (-0600) Subject: UBUNTU: SAUCE: Add '-fno-pie -no-pie' to cflags for x86 selftests X-Git-Tag: Ubuntu-4.10.0-9.11~149 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a76784386e332e4f3473cbce9fdac95790bff771;p=mirror_ubuntu-zesty-kernel.git UBUNTU: SAUCE: Add '-fno-pie -no-pie' to cflags for x86 selftests This fixes a build error due to gcc generating position- independent code by default in Ubuntu. Signed-off-by: Seth Forshee --- diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 8c1cb423cfe6..d20da3389910 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -17,7 +17,7 @@ TARGETS_C_64BIT_ALL := $(TARGETS_C_BOTHBITS) $(TARGETS_C_64BIT_ONLY) BINARIES_32 := $(TARGETS_C_32BIT_ALL:%=%_32) BINARIES_64 := $(TARGETS_C_64BIT_ALL:%=%_64) -CFLAGS := -O2 -g -std=gnu99 -pthread -Wall +CFLAGS := -O2 -g -std=gnu99 -pthread -Wall -fno-pie -no-pie UNAME_M := $(shell uname -m) CAN_BUILD_I386 := $(shell ./check_cc.sh $(CC) trivial_32bit_program.c -m32)