diff options
author | Baruch Siach <baruch@tkos.co.il> | 2013-12-31 11:07:29 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-12-31 11:57:48 +0100 |
commit | 410c3cf7ebe69016e73bbe63d1ba4b0a251b5c9a (patch) | |
tree | 18820f9a6dfb2bac807f70b70517c5d002bef148 | |
parent | 6d13ec0afc16401551df6b7e26d28deb1b078b75 (diff) |
php: fix build for xtensa
The php 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/a9a/a9a1063104402ec28e01560ec7c8f8a5b6d43dd5/.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/php/php.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/php/php.mk b/package/php/php.mk index 10c314f85..f31217e77 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -36,6 +36,10 @@ ifneq ($(BR2_INET_IPV6),y) endif endif +ifeq ($(BR2_xtensa),y) +PHP_CFLAGS += -mtext-section-literals +endif + PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_CLI),,--disable-cli) PHP_CONF_OPT += $(if $(BR2_PACKAGE_PHP_CGI),,--disable-cgi) |