Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5555c05 authored by Greg Hackmann's avatar Greg Hackmann Committed by Jin Qian
Browse files

ANDROID: arch: x86: disable pic for Android toolchain



Android toolchains enable PIC, so explicitly disable it with
-fno-pic (this is the upstream gcc default)

Signed-off-by: default avatarGreg Hackmann <ghackmann@google.com>
(cherry picked from commit 892606ece2bebfa5a1ed62e9552cc973707ae9d3)

Change-Id: I1e600363e5d18e459479fe4eb23d76855e16868d
parent bc43565e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,8 @@ else
        KBUILD_CFLAGS += $(call cc-option,-mno-80387)
        KBUILD_CFLAGS += $(call cc-option,-mno-fp-ret-in-387)

        KBUILD_CFLAGS += -fno-pic

	# Use -mpreferred-stack-boundary=3 if supported.
	KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3)