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

Commit 6c10d8e3 authored by djMesias's avatar djMesias
Browse files

Revert 'Change I36bf036d: Enable ICF link-time optimization'

In HTC Desire (Bravo) this change fails to record video in HIGH resolution: the resulting file isn't saved to the SD.
LOW resolution and MMS mode works normaly.

Change-Id: I764b454f0ba849669f2c78fd56bf1577be46b1d9
parent 70b2227e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -60,7 +60,8 @@ TARGET_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
TARGET_arm_CFLAGS :=    -O2 \
                        -fomit-frame-pointer \
                        -fstrict-aliasing    \
                        -funswitch-loops
                        -funswitch-loops     \
                        -finline-limit=300

# Modules can choose to compile some source as thumb. As
# non-thumb enabled targets are supported, this is treated
@@ -70,7 +71,8 @@ ifeq ($(ARCH_ARM_HAVE_THUMB_SUPPORT),true)
TARGET_thumb_CFLAGS :=  -mthumb \
                        -Os \
                        -fomit-frame-pointer \
                        -fno-strict-aliasing
                        -fno-strict-aliasing \
                        -finline-limit=64
else
TARGET_thumb_CFLAGS := $(TARGET_arm_CFLAGS)
endif
@@ -95,7 +97,6 @@ arch_include_dir := $(dir $(android_config_h))
TARGET_GLOBAL_CFLAGS += \
			-msoft-float -fpic \
			-ffunction-sections \
			-fdata-sections \
			-funwind-tables \
			-fstack-protector \
			-Wa,--noexecstack \
@@ -117,7 +118,6 @@ TARGET_GLOBAL_CFLAGS += -Wno-psabi

TARGET_GLOBAL_LDFLAGS += \
			-Wl,-z,noexecstack \
			-Wl,--icf=safe \
			$(arch_variant_ldflags)

# We only need thumb interworking in cases where thumb support
@@ -136,6 +136,8 @@ TARGET_RELEASE_CFLAGS := \
			-DNDEBUG \
			-g \
			-Wstrict-aliasing=2 \
			-finline-functions \
			-fno-inline-functions-called-once \
			-fgcse-after-reload \
			-frerun-cse-after-loop \
			-frename-registers