diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2003-07-02 20:51:30 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2003-07-02 20:51:30 +0000 |
commit | cdae046749794fec5108147afd696859f96d9185 (patch) | |
tree | 83f75547483814fd10413215c912e43fc7555ca7 | |
parent | 18ecbedd169af7167ebbdbd32994186db49220e6 (diff) |
Notes
-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 601c2457af5ae..58fe06159ef05 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 5c5d05928d8c6..9f6783ebef89d 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 601c2457af5ae..58fe06159ef05 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 5c5d05928d8c6..9f6783ebef89d 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 |