yes, only appending -lncurses on a unix-ish system is the solution I'd
prefer, I'd be totally happy with that.
On May 9, 2013 6:12 AM, "Xantrim" <notifications@github.com> wrote:

> In Makefile:
>
> >    TARGET = $(W32TARGET)
> >    BINDIST = $(W32BINDIST)
> >    BINDIST_CMD = $(W32BINDIST_CMD)
> >    ODIR = $(W32ODIR)
> > -  LDFLAGS += -lgdi32
> > +  W32LDFLAGS = -Wl,--stack,1200000,--subsystem,windows
> > +  LDFLAGS = -lgdi32
>
> But exactly that causes the problem. And the beginning of the Makefile,
> there is this line:
> LDFLAGS += -lncurses
> This adds curses to ALL build targets, even if cross-compiling for
> Windows, were this won't work. So the main problem is, that the -lncurses
> flag shouldn't be set globally, but only if the target is a unix-ish
> system.
>
> I didn't build on windows either, but this is the cross-compiling section
> after all. So maybe we should test whether we are building for Windows
> first, and if not, just add the ncurses dependency.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/TheDarklingWolf/Cataclysm-DDA/pull/897/files#r4151123>
> .
>