summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 884e3103c064..ab5ae75b7ab9 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -40,9 +40,12 @@ _csu=csu/${MACHINE_ARCH}
_csu=csu
.endif
+# libc_r is obsolete on ia64.
+.if ${MACHINE_ARCH} != "ia64"
.if !defined(NOLIBC_R)
_libc_r= libc_r
.endif
+.endif
.if !defined(NO_BIND)
_libbind= libbind
@@ -69,6 +72,9 @@ _libthr= libthr
.endif
.if ${MACHINE_ARCH} == "ia64"
+.if !defined(NOLIBPTHREAD)
+_libpthread= libpthread
+.endif
.if !defined(NOLIBTHR)
_libthr= libthr
.endif