summaryrefslogtreecommitdiffstats
path: root/lib/libthr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/Makefile')
-rw-r--r--lib/libthr/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
index 26bff3d..37073ea 100644
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -8,6 +8,10 @@
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
+.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
+SHLIBDIR?= /lib
+.endif
+
.include <bsd.own.mk>
LIB=thr
@@ -41,7 +45,7 @@ PRECIOUSLIB=
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
.if !defined(NO_PIC)
-SYMLINKS+=lib${LIB}.so ${SHLIBDIR}/libpthread.so
+SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
.endif
.if ${MK_PROFILE} != "no"
SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
OpenPOWER on IntegriCloud