summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-12-06 17:45:42 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-12-06 17:45:42 +0000
commit6e5a5dc03d3f618775a72adc08de31a11ab20e9b (patch)
tree7c698381f5905a2bad3605aec88799b0c2ec840d /usr.bin
parentc0460cf2e42d2819c1f191a1d6e1b3dc0c7ea010 (diff)
downloadsrc-test2-6e5a5dc03d3f618775a72adc08de31a11ab20e9b.tar.gz
src-test2-6e5a5dc03d3f618775a72adc08de31a11ab20e9b.zip
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
Notes
Notes: svn path=/head/; revision=368392
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/grep/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/grep/Makefile b/usr.bin/grep/Makefile
index 4ff56e342c6a..be3f095c1ad8 100644
--- a/usr.bin/grep/Makefile
+++ b/usr.bin/grep/Makefile
@@ -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