Index: lib/libthr/Makefile =================================================================== RCS file: /home/ncvs/src/lib/libthr/Makefile,v retrieving revision 1.20 diff -u -r1.20 Makefile --- lib/libthr/Makefile 22 Aug 2006 07:51:06 -0000 1.20 +++ lib/libthr/Makefile 26 Nov 2006 11:22:17 -0000 @@ -42,7 +42,7 @@ .include "${.CURDIR}/sys/Makefile.inc" .include "${.CURDIR}/thread/Makefile.inc" -.if ${MACHINE_ARCH} == "sparc64" +.if ${MACHINE_ARCH} == "sparc64" || ${MK_LIBPTHREAD} == "no" SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a .if !defined(NO_PIC) SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so Index: sbin/ggate/Makefile =================================================================== RCS file: /home/ncvs/src/sbin/ggate/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- sbin/ggate/Makefile 22 Aug 2006 07:51:09 -0000 1.6 +++ sbin/ggate/Makefile 26 Nov 2006 11:41:15 -0000 @@ -6,12 +6,8 @@ ${_ggated} \ ggatel -.if ${MACHINE_ARCH} == "sparc64" -.if ${MK_LIBTHR} != "no" -_ggatec= ggatec -_ggated= ggated -.endif -.elif ${MK_LIBPTHREAD} != "no" +.if ${MK_LIBTHR} != "no" || \ + (${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no") _ggatec= ggatec _ggated= ggated .endif Index: usr.bin/Makefile =================================================================== RCS file: /home/ncvs/src/usr.bin/Makefile,v retrieving revision 1.296 diff -u -r1.296 Makefile --- usr.bin/Makefile 22 Aug 2006 03:22:17 -0000 1.296 +++ usr.bin/Makefile 26 Nov 2006 11:41:25 -0000 @@ -262,11 +262,8 @@ .if ${MK_OPENSSL} != "no" _chkey= chkey _newkey= newkey -.if ${MACHINE_ARCH} == "sparc64" -.if ${MK_LIBTHR} != "no" -_csup= csup -.endif -.elif ${MK_LIBPTHREAD} != "no" +.if ${MK_LIBTHR} != "no" || \ + (${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no") _csup= csup .endif .endif Index: usr.sbin/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/Makefile,v retrieving revision 1.364 diff -u -r1.364 Makefile --- usr.sbin/Makefile 15 Nov 2006 14:57:05 -0000 1.364 +++ usr.sbin/Makefile 26 Nov 2006 11:41:46 -0000 @@ -105,7 +105,7 @@ ${_ndp} \ newsyslog \ nfsd \ - ngctl \ + ${_ngctl} \ nghook \ nologin \ ntp \ @@ -226,10 +226,6 @@ _bluetooth= bluetooth .endif -.if ${MK_NS_CACHING} != "no" -_cached= cached -.endif - .if ${MK_OPENSSL} != "no" _keyserv= keyserv .endif @@ -267,10 +263,22 @@ _authpf= authpf .endif +.if ${MK_LIBTHR} != "no" || \ + (${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no") +_ngctl= ngctl +.endif + .if ${MK_LPR} != "no" _lpr= lpr .endif +.if ${MK_NS_CACHING} != "no" +.if ${MK_LIBTHR} != "no" || \ + (${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no") +_cached= cached +.endif +.endif + .if ${MK_SENDMAIL} != "no" _editmap= editmap _mailstats= mailstats @@ -305,7 +313,7 @@ _mptable= mptable _ndiscvt= ndiscvt _pnpinfo= pnpinfo -.if ${MK_LIBPTHREAD} != "no" +.if ${MK_LIBPTHREAD} != "no" || ${MK_LIBTHR} != "no" _pppctl= pppctl .endif _sicontrol= sicontrol @@ -341,7 +349,7 @@ _mount_smbfs= mount_smbfs _mptable= mptable _ndiscvt= ndiscvt -.if ${MK_LIBPTHREAD} != "no" +.if ${MK_LIBPTHREAD} != "no" || ${MK_LIBTHR} != "no" _pppctl= pppctl .endif _sicontrol= sicontrol @@ -355,7 +363,7 @@ .endif _kgmon= kgmon _mount_smbfs= mount_smbfs -.if ${MK_LIBPTHREAD} != "no" +.if ${MK_LIBPTHREAD} != "no" || ${MK_LIBTHR} != "no" _pppctl= pppctl .endif _zzz= zzz Index: usr.sbin/cached/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/cached/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- usr.sbin/cached/Makefile 28 Apr 2006 12:03:37 -0000 1.1 +++ usr.sbin/cached/Makefile 26 Nov 2006 11:12:41 -0000 @@ -1,19 +1,17 @@ # $FreeBSD: src/usr.sbin/cached/Makefile,v 1.1 2006/04/28 12:03:37 ume Exp $ -PROG=cached -PROGNAME=cached -MAN=cached.conf.5 cached.8 +PROG= cached +MAN= cached.conf.5 cached.8 -WARNS?=2 -SRCS= agent.c cached.c cachedcli.c cachelib.c cacheplcs.c debug.c log.c \ +WARNS?= 2 +SRCS= agent.c cached.c cachedcli.c cachelib.c cacheplcs.c debug.c log.c \ config.c query.c mp_ws_query.c mp_rs_query.c singletons.c protocol.c \ parser.c CFLAGS+= -DCONFIG_PATH="\"${PREFIX}/etc/cached.conf\"" -DPADD+=${LIBM} ${LIBPTHREAD} ${LIBUTIL} -LDADD+=${LIBM} ${LIBPTHREAD} ${LIBUTIL} -LDFLAGS+= -Xlinker --export-dynamic +DPADD= ${LIBM} ${LIBPTHREAD} ${LIBUTIL} +LDADD= -lm -lpthread -lutil +#LDFLAGS+= -Xlinker --export-dynamic -.PATH: ${.CURDIR}/agents -.include "agents/Makefile.inc" -.include "../Makefile.inc" +.PATH: ${.CURDIR}/agents +.include "${.CURDIR}/agents/Makefile.inc" .include