summaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
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