From e820488b092837eb546233ada0ac6bb9d49b53c9 Mon Sep 17 00:00:00 2001 From: Vishal Mahaveer Date: Fri, 13 Jan 2017 12:22:39 -0500 Subject: SGX-BIN: buildvars: Compile PVR KM with -fno-pic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adapted from http://review.omapzoom.org/#/c/38080 Signed-off-by: D. Andrei Măceș Change-Id: Ibe9beaf46c5236fc5ab477aa49e2f397000c2d6e --- pvr-source/eurasiacon/build/linux2/buildvars.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pvr-source/eurasiacon/build/linux2/buildvars.mk b/pvr-source/eurasiacon/build/linux2/buildvars.mk index 24fa829..eee91cc 100644 --- a/pvr-source/eurasiacon/build/linux2/buildvars.mk +++ b/pvr-source/eurasiacon/build/linux2/buildvars.mk @@ -207,6 +207,10 @@ ALL_KBUILD_CFLAGS := $(COMMON_CFLAGS) $(KBUILD_WARNING_CFLAGS) \ $(call kernel-cc-option,-Wno-aggregate-return) \ $(call kernel-cc-option,-Wno-unused-but-set-variable) +# androideabi toolchain adds `pic` by default, disable it +# for kernel module build +ALL_KBUILD_CFLAGS += -fno-pic + # This variable contains a list of all modules built by kbuild ALL_KBUILD_MODULES := -- cgit v1.1