]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix ncurses fallback.c build with a strict build shell
authorarichardson <arichardson@FreeBSD.org>
Tue, 23 Oct 2018 06:31:31 +0000 (06:31 +0000)
committerarichardson <arichardson@FreeBSD.org>
Tue, 23 Oct 2018 06:31:31 +0000 (06:31 +0000)
commit0c655ea2f3ab2bebd6c05f99b733bc6150fe86f8
tree0264c1f85e0e9d75142c456de982fd4678d9a0ec
parented1f8eba3010e7eedecfe838c469b8ced4cceaad
Fix ncurses fallback.c build with a strict build shell

The script uses shift three times and when building with a strict /bin/sh
shifting without any arguments will cause the script to fail. In this case
the target will fail and we write an empty output file. When doing a
NO_CLEAN build after this will mean fallback.c is up to date and clang
will happily compile the empty input file which leads to strange build
errors later.

Fixed by passing three empty arguments to MkFallback.sh and only creating
fallback.c if MKfallback.sh succeeds.

Aproved By: brooks (mentor)
Differential Revision: https://reviews.freebsd.org/D16867
lib/ncurses/ncurses/Makefile