summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2008-10-26 00:00:27 +0000
committermrg <mrg@NetBSD.org>2008-10-26 00:00:27 +0000
commitfb8d95d82667f2f0d7fb6cfa95cf56c9d6ea3ec9 (patch)
tree5186d5b0d05cc85db713f838f524ad0edf60c96e /lib/libpthread
parent18c952108382c724c737058f1389865e3331ac2b (diff)
check for ${PTHREAD_MACHINE_ARCH} before ${MACHINE_ARCH} or ${MACHINE_CPU}
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index 6239fa3bd4c..2d9dbd99720 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -1,11 +1,14 @@
-# $NetBSD: Makefile,v 1.54 2008/10/08 08:27:07 ad Exp $
+# $NetBSD: Makefile,v 1.55 2008/10/26 00:00:27 mrg Exp $
#
WARNS= 4
.include <bsd.own.mk>
-.if exists(${.CURDIR}/arch/${MACHINE_ARCH})
+.if defined(PTHREAD_MACHINE_ARCH) && !empty(PTHREAD_MACHINE_ARCH) && \
+ exists(${.CURDIR}/arch/${PTHREAD_MACHINE_ARCH})
+ARCHSUBDIR= ${PTHREAD_MACHINE_ARCH}
+.elif exists(${.CURDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR= ${MACHINE_ARCH}
.elif exists(${.CURDIR}/arch/${MACHINE_CPU})
ARCHSUBDIR= ${MACHINE_CPU}