summaryrefslogtreecommitdiff
path: root/mk/pthread.builtin.mk
AgeCommit message (Collapse)AuthorFilesLines
2005-01-17Rework code to more easily allow listing other platform that, like NetBSD,jlam1-2/+3
use GCC and can accept -pthread. Add DragonFly(BSD) to this list (from PR pkg/28964).
2004-12-09From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE"jlam1-1/+4
as part of the CPPFLAGS when building threaded apps.
2004-11-28Reverse the tests so that we actually check for the existence and notjlam1-6/+6
the non-existence of the library -- this more accurately reflects what we want to say.
2004-11-26Don't append BUILDLINK_CFLAGS.pthread to itself if pthread.builtin.mkjlam1-1/+2
gets included multiple times.
2004-11-26More tightly integrate the OSF1 changes into pthread.builtin.mk by usingjlam1-24/+17
more feature tests instead of OPSYS tests.
2004-11-20add pthread glue for OSF1, patch from Tobias Nygren.grant1-1/+7
2004-11-12(1) Split out the native (built-in) pthread detection injlam1-0/+74
pthread.buildlink3.mk into a separate file, pthread.builtin.mk, that is handled using the usual builtin.mk logic. (2) If pthread.buildlink3.mk is included by a package Makefile, then automatically add the necessary compiler and linker flags to compile and link pthread-enabled/reentrant code. For native pthreads, this means passing -pthread to the compiler and linker. For the userland pthread replacement, we pass -D_REENTRANT and -lpthread instead. (3) Add PTHREAD_{CFLAGS,LDFLAGS,LIBS} in both CONFIGURE_ENV and MAKE_ENV when pthread.buildlink3.mk is included so that the configure and build processes can use these values. Remove these definitions from bsd.pkg.mk since PTHREAD_* variables are all declared within pthread.buildlink3.mk. XXX For now, PTHREAD_LDFLAGS is a superset of PTHREAD_LIBS until XXX packages that use use PTHREAD_LDFLAGS can be fixed.