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
--