mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368392
|
@ -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 a new issue