170d526e91
Some compilers, such as the Blackfin GNU compiler, prefix a character to any C symbol in generated assembly code. If any assembly symbol is invoked from C code, it needs to be prefixed as well. Note: since autoreconf doesn't work with this package because automake isn't used. Fixes: http://autobuild.buildroot.net/results/c40a22814b405de2c5c75139cfc393c863ed4b81/ [Ryan: add information about why patching configure is ok] [Ryan: add renaming of patches to be consistent with standard] Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
1.6 KiB
Diff
37 lines
1.6 KiB
Diff
Workaround toolchain bugs
|
|
|
|
Many of ARM Sourcery CodeBench toolchain have a bug when compiling
|
|
icu's translit.cpp source file. The bug is trigerred when there is a
|
|
combination of "-W -Wall" and "-Os", and causes an internal compiler
|
|
error. The bug has been reported to Mentor Graphics.
|
|
|
|
Even though it is clearly a toolchain bug, having a workaround for it
|
|
is trivial in this case. So it will avoid our users falling into this
|
|
internal compiler error, and allow our autobuilders to test more
|
|
packages using this Sourcery CodeBench toolchain.qq
|
|
|
|
[Gustavo: update for ICU4C 51.2]
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
diff -Nura icu.orig/source/configure icu/source/configure
|
|
--- icu.orig/source/configure 2013-05-23 17:06:32.000000000 -0300
|
|
+++ icu/source/configure 2013-06-29 15:43:04.202320953 -0300
|
|
@@ -4066,7 +4066,7 @@
|
|
then
|
|
# Do not use -ansi. It limits us to C90, and it breaks some platforms.
|
|
# We use -std=c99 to disable the gnu99 defaults and its associated warnings
|
|
- CFLAGS="$CFLAGS -Wall -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
|
+ CFLAGS="$CFLAGS -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
|
else
|
|
case "${host}" in
|
|
*-*-cygwin)
|
|
@@ -4078,7 +4078,7 @@
|
|
fi
|
|
if test "$GXX" = yes
|
|
then
|
|
- CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
|
+ CXXFLAGS="$CXXFLAGS -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
|
else
|
|
case "${host}" in
|
|
*-*-cygwin)
|