On Mon, Dec 13, 2004 at 10:20:49PM +0100, Martin Konold wrote: > When compiling php from OpenPKG 2.2 the resulting binary is linked to the > _system _ library libgcrypt dynamically. (This is new behavior in 2.2 and was > not present before)
There are two problems. One is that of configure scripts that automagically search the system for libraries. This can only be solved by fixing the scripts to use explicit references. The other is that of library (and include) search order. Here I suggest to borrow from NetBSD's pkgsrc system. The buildlink step avoids any search order problems by preparing seperated include and library directories for each build. Shared libraries are a different problem. The only solution is to use fixed paths, most (all?) architectures allow for embedded library filenames or at least embedded library search paths. -- Michael van Elst Internet: [EMAIL PROTECTED] "A potential Snark may lurk in every tree." ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]