summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-03 20:49:02 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-03 20:49:02 +0000
commita0067f51183d8b472112a095c7c0d32145ff98b3 (patch)
tree96321fd1bd5ffaea0d4f16723ebb5a9cc4a139e9 /share
parent7dfb23e53684ac495a4cf9a6a5188a1f91d5885a (diff)
Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.lib.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index c4a0021ad52..302474171aa 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lib.mk,v 1.58 2009/02/05 19:15:21 miod Exp $
+# $OpenBSD: bsd.lib.mk,v 1.59 2010/02/03 20:49:01 miod Exp $
# $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $
# @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
@@ -160,7 +160,7 @@ _LIBS+=lib${LIB}_p.a
.endif
.if !defined(NOPIC)
-.if (${MACHINE_ARCH} != "mips64")
+.if (${MACHINE_CPU} != "mips64")
_LIBS+=lib${LIB}_pic.a
.endif
.if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR)
@@ -272,7 +272,7 @@ realinstall:
.endif
chmod ${LIBMODE} ${DESTDIR}${LIBDIR}/lib${LIB}_p.a
.endif
-.if !defined(NOPIC) && (${MACHINE_ARCH} != "mips64")
+.if !defined(NOPIC) && (${MACHINE_CPU} != "mips64")
# ranlib lib${LIB}_pic.a
${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 \
lib${LIB}_pic.a ${DESTDIR}${LIBDIR}