cvs commit: src/lib Makefile

David Xu davidxu at freebsd.org
Wed Oct 26 23:36:30 PDT 2005


Ruslan Ermilov wrote:

> This should break alpha and sparc64 ports: on these architectures,
> libpthread was symlinked to libc_r.  The magic is in makefiles:
> 
> # libpthread/Makefile
> .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
> LIB=kse
> .else
> LIB=pthread
> .endif
> 
> # libc_r/Makefile
> .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
> SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
> .if !defined(NO_PIC)
> SYMLINKS+=lib${LIB}.so ${SHLIBDIR}/libpthread.so
> .endif
> .if !defined(NO_PROFILE)
> SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
> .endif
> .endif
> 
> 
> Cheers,

Thanks for the information, last time, I have tested it on
panther, libthr works, at least works with test programs.
Would it be ok to let libthr be the libpthread ? I can not
test alpha, it seems beast still uses 5.4.

David Xu



More information about the cvs-all mailing list