summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2013-12-31 09:07:30 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-31 10:57:51 (GMT)
commit7c04932603476f3adf474f3bc47c35bdb59d947a (patch)
treec27346f66e25273adcc3bbe15a1e56f20cc716d8
parent410c3cf7ebe69016e73bbe63d1ba4b0a251b5c9a (diff)
downloadbuildroot-7c04932603476f3adf474f3bc47c35bdb59d947a.tar.gz
buildroot-7c04932603476f3adf474f3bc47c35bdb59d947a.tar.bz2
lmbench: fix build for xtensa
The lmbench package generates a binary that is too large for the xtensa default placement of literals in a dedicated section. Use -mtext-section-literal to place literals in the text section. Fixes http://autobuild.buildroot.net/results/afe/afe9f4550e6ac9a41e4ba338773c1d51034273f7/. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/lmbench/lmbench.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk
index c3a6c09..529026f 100644
--- a/package/lmbench/lmbench.mk
+++ b/package/lmbench/lmbench.mk
@@ -19,6 +19,10 @@ LMBENCH_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
LMBENCH_LDFLAGS += -ltirpc
endif
+ifeq ($(BR2_xtensa),y)
+LMBENCH_CFLAGS += -mtext-section-literals
+endif
+
define LMBENCH_CONFIGURE_CMDS
$(call CONFIG_UPDATE,$(@D))
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile