// // -lroot is required for Haiku to use pthread? // // I have thought that libroot is the default library (like a libc) and
// // no need to be linked exactly.
// ////// // -- // OBATA Akio / obata%lins.jp@localhost
//
// You can use buildlinktransform, such:
// // BUILDLINK_TRANSFORM+= l:m:root // BUILDLINK_TRANSFORM+= l:pthread:root // BUILDLINK_TRANSFORM+= l:c:root
//
// it also works :)
Using BUILDLINK_TRANSFORM workaround may help to build the package, but useless in resolving packages dependencies. In case pthreads was not found on stage_depends pkgsrc will try to build a package "pth".
With this patch pkgsrc uses system pthread:
__________________________________________________________
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk index 883f910..80ab39f 100644 --- a/mk/pthread.builtin.mk +++ b/mk/pthread.builtin.mk @@ -2,7 +2,7 @@ BUILTIN_PKG:= pthread -BUILTIN_FIND_LIBS:= pthread c_r rt +BUILTIN_FIND_LIBS:= pthread c_r rt root BUILTIN_FIND_HEADERS_VAR= H_PTHREAD BUILTIN_FIND_HEADERS.H_PTHREAD= pthread.h
--------------------------------------------------------------------------------------- -- Diger --