summaryrefslogtreecommitdiffstats
path: root/core/combo/fdo.mk
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2014-08-20 16:48:17 -0700
committerDehao Chen <dehao@google.com>2014-08-20 16:48:17 -0700
commitf4294cd81617250097a15f4cbe6af937ae3f303c (patch)
tree025a2b62d520e3c01ac321881a2295aefb4b6b8b /core/combo/fdo.mk
parent4faea310acb2e884192f3e760e3190426b9c6d0f (diff)
downloadbuild-f4294cd81617250097a15f4cbe6af937ae3f303c.zip
build-f4294cd81617250097a15f4cbe6af937ae3f303c.tar.gz
build-f4294cd81617250097a15f4cbe6af937ae3f303c.tar.bz2
Add TARGET_FDO_LDFLAGS to make sure -lgcc is always linked after -lgcov.
Change-Id: I33a94abe58391a8564ada14417b0158ddd7ed2d6
Diffstat (limited to 'core/combo/fdo.mk')
-rw-r--r--core/combo/fdo.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/combo/fdo.mk b/core/combo/fdo.mk
index a05af6d..9e331b6 100644
--- a/core/combo/fdo.mk
+++ b/core/combo/fdo.mk
@@ -22,6 +22,7 @@ ifeq ($(strip $(BUILD_FDO_INSTRUMENT)), true)
# Set BUILD_FDO_INSTRUMENT=true to turn on FDO instrumentation.
# The profile will be generated on /sdcard/fdo_profile on the device.
$(combo_2nd_arch_prefix)TARGET_FDO_CFLAGS := -fprofile-generate=/sdcard/fdo_profile -DANDROID_FDO
+ $(combo_2nd_arch_prefix)TARGET_FDO_LDFLAGS := -lgcov -lgcc
else
ifeq ($(strip $(BUILD_FDO_OPTIMIZE)), true)
# Set TARGET_FDO_PROFILE_PATH to set a custom profile directory for your build.