diff options
-rw-r--r-- | lib/libkse/Makefile | 6 | ||||
-rw-r--r-- | lib/libkse/support/Makefile.inc | 5 | ||||
-rw-r--r-- | lib/libpthread/Makefile | 6 | ||||
-rw-r--r-- | lib/libpthread/support/Makefile.inc | 5 |
4 files changed, 16 insertions, 6 deletions
diff --git a/lib/libkse/Makefile b/lib/libkse/Makefile index 601c245..58fe061 100644 --- a/lib/libkse/Makefile +++ b/lib/libkse/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/libkse/support/Makefile.inc b/lib/libkse/support/Makefile.inc index 5c5d059..9f6783e 100644 --- a/lib/libkse/support/Makefile.inc +++ b/lib/libkse/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 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 |