[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Compiling pygame on Ubuntu 11.10 oneiric JPGE not found



On 28/01/12 05:54 AM, Christopher Arndt wrote:
On 28.01.2012 02:34, Lenard Lindstrom wrote:
[snip]
Though a temporary soludtion, adding more lookup paths to config_unix.py
would mean constant maintenance.
[snip]
But the question is, does the pygame compilation process really need to
know where the library is installed? Since the linker knows how to find
the library, config_unix.py could just compile&  link a minimal C file
which includes the library and test if that succeeds. Just like GNU
autoconf does.

config_unix.py checks what libraries are present to determine which Pygame modules are built. Otherwise, yes, the linker can find the libraries. The ldconfig program lists the shared libraries recognized by the run-time linker. So that could replace directory searches.

Lenard Lindstrom