Date: Fri, 14 Jul 2006 05:06:50 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 101512 for review Message-ID: <200607140506.k6E56odA034076@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101512 Change 101512 by jb@jb_freebsd2 on 2006/07/14 05:06:23 Use the proper way to tell gcc to link threaded. Note that there isn't a _single_ place in the FreeBSD source tree where threaded programs are built properly. No wonder that the ports people often get it wrong too! Affected files ... .. //depot/projects/dtrace/src/tools/tools/netrate/http/Makefile#3 edit .. //depot/projects/dtrace/src/tools/tools/netrate/httpd/Makefile#3 edit .. //depot/projects/dtrace/src/tools/tools/netrate/juggle/Makefile#3 edit Differences ... ==== //depot/projects/dtrace/src/tools/tools/netrate/http/Makefile#3 (text+ko) ==== @@ -3,7 +3,7 @@ PROG= http WARNS= 3 NO_MAN= -DPADD= ${LIBPTHREAD} -LDADD= -lpthread +CFLAGS+=-pthread +DPADD+= ${LIBPTHREAD} .include <bsd.prog.mk> ==== //depot/projects/dtrace/src/tools/tools/netrate/httpd/Makefile#3 (text+ko) ==== @@ -3,7 +3,7 @@ PROG= httpd WARNS= 3 NO_MAN= -DPADD= ${LIBPTHREAD} -LDADD= -lpthread +CFLAGS+=-pthread +DPADD+= ${LIBPTHREAD} .include <bsd.prog.mk> ==== //depot/projects/dtrace/src/tools/tools/netrate/juggle/Makefile#3 (text+ko) ==== @@ -3,8 +3,7 @@ PROG= juggle NO_MAN= WARNS= 3 - -LDADD= -lpthread -DPADD= ${LIBPTHREAD} +CFLAGS+=-pthread +DPADD+= ${LIBPTHREAD} .include <bsd.prog.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607140506.k6E56odA034076>