summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorBarret Rhoden <brho@cs.berkeley.edu>2018-09-28 14:33:53 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-09-28 14:35:12 -0700
commit7179b21b0366062d55e411320ff347c436d05a8a (patch)
tree6311316c2b43c5ba0a7c592b79a2c320923d9e0c /cfg.mk
parent532737abf5d47f22d8b249c899160f44ba2ff65e (diff)
downloadgrep-7179b21b0366062d55e411320ff347c436d05a8a.tar.gz
maint: fix cross-compiling problem
* cfg.mk (PATH): Omit if cross-compiling (Bug#32866). Copyright-paperwork-exempt: yes
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 9af3a8c6..0c7e7877 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -17,7 +17,9 @@
# Cause the tool(s) built by this package to be used also when running
# commands via e.g., "make syntax-check". Doing this a little sooner
# would have avoided a grep infloop bug.
+ifeq ($(build_triplet), $(host_triplet))
export PATH := $(builddir)/src$(PATH_SEPARATOR)$(PATH)
+endif
# Used in maint.mk's web-manual rule
manual_title = GNU Grep: Print lines matching a pattern