aboutsummaryrefslogtreecommitdiff
path: root/package/lmbench/lmbench.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/lmbench/lmbench.mk')
-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 c3a6c090d0..529026fd72 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