Commit graph

5 commits

Author SHA1 Message Date
jlam
9636b9d697 Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
2004-11-28 05:44:34 +00:00
jlam
96786425e0 Don't append BUILDLINK_CFLAGS.pthread to itself if pthread.builtin.mk
gets included multiple times.
2004-11-26 08:18:30 +00:00
jlam
399f4ba496 More tightly integrate the OSF1 changes into pthread.builtin.mk by using
more feature tests instead of OPSYS tests.
2004-11-26 08:12:59 +00:00
grant
cda1ab8d17 add pthread glue for OSF1, patch from Tobias Nygren. 2004-11-20 05:19:12 +00:00
jlam
153b3f00b7 (1) Split out the native (built-in) pthread detection in
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.
2004-11-12 05:20:01 +00:00