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