]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bsdgrep: don't link against libregex for bootstrap
authorkevans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 17:45:42 +0000 (17:45 +0000)
committerkevans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 17:45:42 +0000 (17:45 +0000)
commit611f3e8f76bd3d8c3d7ca72e4f910cffe12204c3
tree7c698381f5905a2bad3605aec88799b0c2ec840d
parentbfea669358878bcf8699c8d0ca939fa7544c3b4b
bsdgrep: don't link against libregex for bootstrap

r368355 removed the GNU_GREP_COMPAT knob (off by default) and forgot that
bsdgrep may be built/used for bootstrap on some systems.

All base uses should strive to use only POSIX-compliant expressions anyways
and we haven't had libregex by default here up to this point, so just don't
do that if we're bootstrapping.

Note that the resulting binary has the wrong `grep -V` information as it
falsely claims to be GNU compatible, but it is only for bootstrap.

Reported by: GitHub cross-builds via yuripv
usr.bin/grep/Makefile