]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bsdgrep: don't link against libregex for bootstrap
authorKyle Evans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 17:45:42 +0000 (17:45 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 17:45:42 +0000 (17:45 +0000)
commit6e5a5dc03d3f618775a72adc08de31a11ab20e9b
tree7c698381f5905a2bad3605aec88799b0c2ec840d
parentc0460cf2e42d2819c1f191a1d6e1b3dc0c7ea010
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