Skip to content

Commit 4612272

Browse files
Fix ncurses build for big endian
Signed-off-by: Anton Kolesov <[email protected]>
1 parent ef9416e commit 4612272

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

build-uclibc.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ if [ $DO_NATIVE_GDB = yes ]; then
554554

555555
build_dir_init ncurses
556556
tar xaf $ARC_GNU/toolchain/_download_tmp/$ncurses_tar --strip-components=1
557+
558+
# Update ncurses/config.sub which is not aware of arceb-* targets
559+
patch config.sub $ARC_GNU/toolchain/extras/ncurses.big-endian.patch
560+
557561
# Ada is not supported on ARC, so it has to be disabled, otherwise dumb
558562
# configure script might find Ada compiler for host system and will try to
559563
# use it as a compiler for ARC.

extras/ncurses.big-endian.patch

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- config.sub.orig 2015-06-08 15:37:02.962085201 +0300
2+
+++ config.sub.new 2015-06-08 15:37:13.898239511 +0300
3+
@@ -250,7 +250,7 @@
4+
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
5+
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
6+
| am33_2.0 \
7+
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
8+
+ | arc | arceb | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
9+
| bfin \
10+
| c4x | clipper \
11+
| d10v | d30v | dlx | dsp16xx \
12+
@@ -341,7 +341,7 @@
13+
| a29k-* \
14+
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
15+
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
16+
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
17+
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-*\
18+
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
19+
| avr-* | avr32-* \
20+
| bfin-* | bs2000-* \

0 commit comments

Comments
 (0)