]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow building bin/cat on non-FreeBSD systems
authorAlex Richardson <arichardson@FreeBSD.org>
Thu, 16 Jan 2020 14:15:00 +0000 (14:15 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 16 Jan 2020 14:15:00 +0000 (14:15 +0000)
commita33ee411d9878bc4553ee87a1ecc7fc6c55e6e14
treee7533642c67ecd0a52c57285d5a83a5dd7d11e70
parenta9638453049babcd185f730126f50d4598dc7b16
Allow building bin/cat on non-FreeBSD systems

`cat -l` is needed during the installworld phase and other system's cat
don't support that flag. To avoid portability issues when compiling on
Linux/macOS (such as the the direct access to &fp->_mbstate), we
disable the entire multibyte support when building as a boostrap tool.

Reviewed By: brooks, emaste
Differential Revision: https://reviews.freebsd.org/D13939
bin/cat/Makefile
bin/cat/cat.c