From: Alexander Ivchenko Date: Tue, 9 Sep 2014 13:24:27 +0000 (+0400) Subject: Refine TARGET_GLOBAL_CFLAGS for x86 and x86_64: X-Git-Tag: android-x86-6.0-r1~144^2~1^2~205^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4ee006e012ad376e99d4c2a1e225be9f396fc9eb;p=android-x86%2Fbuild.git Refine TARGET_GLOBAL_CFLAGS for x86 and x86_64: Remove -msse2 for x86 (-mssse3 should be provided by the compiler). Remove -fPIC (compiler provides by default). Remove -fno-inline-functions-called-once. Change-Id: Ibb29934224c4eedfff926dc72c3b6342c1861ac9 (cherry picked from commit 388dce3192b6cecf7424e9d745c3147cc7335c24) --- diff --git a/core/combo/TARGET_linux-x86.mk b/core/combo/TARGET_linux-x86.mk index 0bb218ff6..0af39488b 100644 --- a/core/combo/TARGET_linux-x86.mk +++ b/core/combo/TARGET_linux-x86.mk @@ -82,18 +82,15 @@ $(combo_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS += \ -Werror=format-security \ -D_FORTIFY_SOURCE=2 \ -Wstrict-aliasing=2 \ - -fPIC \ -ffunction-sections \ -finline-functions \ -finline-limit=300 \ - -fno-inline-functions-called-once \ -fno-short-enums \ -fstrict-aliasing \ -funswitch-loops \ -funwind-tables \ -fstack-protector \ -m32 \ - -msse2 \ -no-canonical-prefixes \ -fno-canonical-system-headers \ -include $(android_config_h) \ diff --git a/core/combo/TARGET_linux-x86_64.mk b/core/combo/TARGET_linux-x86_64.mk index 14fa5ed78..33d6a56b0 100644 --- a/core/combo/TARGET_linux-x86_64.mk +++ b/core/combo/TARGET_linux-x86_64.mk @@ -80,11 +80,9 @@ TARGET_GLOBAL_CFLAGS += \ -Werror=format-security \ -D_FORTIFY_SOURCE=2 \ -Wstrict-aliasing=2 \ - -fPIC \ -ffunction-sections \ -finline-functions \ -finline-limit=300 \ - -fno-inline-functions-called-once \ -fno-short-enums \ -fstrict-aliasing \ -funswitch-loops \