pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fix build packages on Haiku



Hi,

--On 2014/05/21 11:24 +0600 diger <admin%freenet59.ru@localhost> wrote:


// -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 is workarounds for packages' abuse of hard coded -lm, -lphtead or -lc.
For -m and -lpthread, you can just drop them:
BUILDLINK_TRANSFORM+=   rm:-lm
BUILDLINK_TRANSFORM+=   rm:-lpthread

It means that "BUILDLINK_LIBS.pthread=-lroot" is not required for Haiku :)

--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index