diff --git a/sys/unix/hints/include/cross-post.370 b/sys/unix/hints/include/cross-post.370 index 6e153bbc9..c6f40e52d 100644 --- a/sys/unix/hints/include/cross-post.370 +++ b/sys/unix/hints/include/cross-post.370 @@ -302,11 +302,11 @@ ifdef BUILD_TARGET_NCURSES .PHONY: build-ncurses ifdef MAKEFILE_SRC ../lib/ncurses.tar.gz: - @echo "You will need to successfully execute 'make CROSS_TO_MIPS=1 fetch-ncurses' first" + @echo "You will need to successfully execute 'make CROSS_TO_$(NCURSES_PLATFORM)=1 fetch-ncurses' first" @false $(TARGETPFX)ncurses/lib/libncurses.a: ../lib/ncurses.tar.gz (cd $(TARGETDIR) ; mkdir -p ncurses ; cd ncurses ; tar -xf ../../../lib/ncurses.tar.gz --strip-components=1 ; \ - ./configure --build i686-pc-linux-gnu --host mipsel-linux-gnu ; \ + ./configure --build $(NCURSES_CONFIGURE_BUILD) --host $(NCURSES_CONFIGURE_HOST) ; \ make ; \ cd ../../../src) endif #MAKEFILE_SRC diff --git a/sys/unix/hints/include/cross-pre2.370 b/sys/unix/hints/include/cross-pre2.370 index b0abd3644..15fbe719c 100644 --- a/sys/unix/hints/include/cross-pre2.370 +++ b/sys/unix/hints/include/cross-pre2.370 @@ -439,6 +439,9 @@ override RECOVERBIN = $(TARGETPFX)recover override PACKAGE = mipspkg override PREGAME += mkdir -p $(TARGETDIR) ; override CLEANMORE += rm -f -r $(TARGETDIR) ; +NCURSES_CONFIGURE_BUILD=i686-pc-linux-gnu +NCURSES_CONFIGURE_HOST=mipsel-linux-gnu +NCURSES_PLATFORM=MIPS # Rule for file in sys/unix #$(TARGETPFX)%.o : ../sys/unix/%.c # $(TARGET_CC) $(TARGET_CFLAGS) -c -o$@ $<