summaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-10-14 20:20:52 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-10-14 20:20:52 +0000
commit40f6f488ebc1e1650279ad4aa067384549bcffad (patch)
tree0517b998e60ce09e3f6a466d65c2beb86efa7d55 /usr.bin/less
parentbf3afa89ff8a372748f58d867455e23d5bfc871d (diff)
Allow less to build in Makefile.cross environment.
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/Makefile.bsd-wrapper7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/less/Makefile.bsd-wrapper b/usr.bin/less/Makefile.bsd-wrapper
index de5a2fc2ae4..d55dfc1f6b5 100644
--- a/usr.bin/less/Makefile.bsd-wrapper
+++ b/usr.bin/less/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.21 2003/04/16 17:54:20 millert Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.22 2006/10/14 20:20:51 drahn Exp $
#
# less config
@@ -30,6 +30,11 @@ CF= --cache-file=${GLOBAL_AUTOCONF_CACHE}
CF= --cache-file=config.cache
.endif
+HOST_ARCH!=arch -s
+.if (${MACHINE_ARCH} != ${HOST_ARCH})
+CF+= --target=openbsd-${MACHINE_ARCH} --host=${HOST_ARCH}
+.endif
+
config: .FORCE
.ifndef GLOBAL_AUTOCONF_CACHE
-rm -f config.cache