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
This commit is contained in:
parent
c0460cf2e4
commit
6e5a5dc03d
@ -60,7 +60,9 @@ MLINKS+= grep.1 egrep.1 \
|
||||
grep.1 rgrep.1
|
||||
.endif
|
||||
|
||||
.if !defined(BOOTSTRAPPING)
|
||||
LIBADD+= regex
|
||||
.endif
|
||||
|
||||
HAS_TESTS=
|
||||
SUBDIR.${MK_TESTS}+= tests
|
||||
|
Loading…
Reference in New Issue
Block a user