summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/Makefile6
-rw-r--r--lib/libpthread/support/Makefile.inc5
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile
index 601c245..58fe061 100644
--- a/lib/libpthread/Makefile
+++ b/lib/libpthread/Makefile
@@ -35,3 +35,9 @@ PRECIOUSLIB= yes
.include "${.CURDIR}/thread/Makefile.inc"
.include <bsd.lib.mk>
+
+# Can't put thr_support.c in SRCS but want it in .depend.
+${DEPENDFILE}: thr_support.c
+
+# LIBC_PIC is defined only after <bsd.lib.mk> is included.
+thr_libc.So: ${LIBC_PIC}
diff --git a/lib/libpthread/support/Makefile.inc b/lib/libpthread/support/Makefile.inc
index 5c5d059..9f6783e 100644
--- a/lib/libpthread/support/Makefile.inc
+++ b/lib/libpthread/support/Makefile.inc
@@ -2,9 +2,8 @@
.PATH: ${.CURDIR}/support
-SRCS += thr_support.c
SOBJS+= thr_libc.So
+CLEANFILES+= thr_support.So
thr_libc.So: thr_support.So
- ${CC} -nostdlib -o ${.TARGET} -Wl,-x,-r ${.ALLSRC} -lc_pic
-
+ ${CC} -nostdlib -o ${.TARGET} -Wl,-r thr_support.So -lc_pic
OpenPOWER on IntegriCloud