crosstool-NG Cygwin Build Fails

Lusk, Timothy CCS Timothy.Lusk@lenel.com
Mon May 7 21:06:00 GMT 2012


The newest two versions of crosstool-NG (1.14.x and 1.15.x) no longer build correctly on Cygwin.  It fails to find libintl and nconf fails to find the folder with the ncurses sources.  It also doesn't like it if you're using the wide character version of ncurses (ncursesw), but the first two issues still occur when using the original ncurses library.  I used the following patches to get it building in Cygwin.  Just a heads up for anyone else who might run into this problem.

$ diff crosstool-ng-1.15.0_old/kconfig/Makefile crosstool-ng-1.15.0/kconfig/Makefile
10c10
< LDFLAGS =
---
> LDFLAGS =
37a38
> conf: LDFLAGS += -lintl
44c45
< mconf: LDFLAGS += $(NCURSES_LDFLAGS)
---
> mconf: LDFLAGS += -lintl $(NCURSES_LDFLAGS)
50,51c51,52
< $(nconf_OBJ) $(nconf_DEP): CFLAGS += $(INTL_CFLAGS)
< nconf: LDFLAGS += -lmenu -lpanel -lncurses
---
> $(nconf_OBJ) $(nconf_DEP): CFLAGS += -I/usr/include/ncursesw/ $(INTL_CFLAGS)
> nconf: LDFLAGS += -lintl -lmenuw -lpanelw -lncursesw

$ diff crosstool-ng-1.15.0_old/kconfig/nconf.c crosstool-ng-1.15.0/kconfig/nconf.c
1521c1521
<       ESCDELAY = 1;
---
>       set_escdelay(1);

Tim


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list