Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] pcre: fix compile error for m68k coldfire
@ 2016-08-18  6:25 Waldemar Brodkorb
  2016-08-19 21:13 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Waldemar Brodkorb @ 2016-08-18  6:25 UTC (permalink / raw)
  To: buildroot

Some very big functions can not be compiled successfully for
m68k coldfire, when -msep-data is used.

Fixes:
  http://autobuild.buildroot.net/results/d31/d311955ada1ffcd7f69e82965c8fe33eabe488cd/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/pcre/pcre.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/pcre/pcre.mk b/package/pcre/pcre.mk
index a10950d..6352cc8 100644
--- a/package/pcre/pcre.mk
+++ b/package/pcre/pcre.mk
@@ -26,5 +26,11 @@ PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_32),--enable-pcre32,--disable-pcre32)
 PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UTF),--enable-utf,--disable-utf)
 PCRE_CONF_OPTS += $(if $(BR2_PACKAGE_PCRE_UCP),--enable-unicode-properties,--disable-unicode-properties)
 
+# fixes gcc error: value -yyyyy out of range
+ifeq ($(BR2_m68k_cf),y)
+PCRE_CFLAGS = $(filter-out -msep-data,$(TARGET_CFLAGS))
+PCRE_CONF_ENV += CFLAGS="$(PCRE_CFLAGS)"
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-22 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18  6:25 [Buildroot] [PATCH] pcre: fix compile error for m68k coldfire Waldemar Brodkorb
2016-08-19 21:13 ` Thomas Petazzoni
2016-08-19 21:24   ` Waldemar Brodkorb
2016-08-22 15:30     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox