It doesn't matter where they are, but the linker will use whatever it
finds first. I think ld has a preference for shared libs, so if
libpng.so and libpng.a are in /usr/local/lib then they shared will
probably be used. Specifying "LDFLAGS=-L/usr/local/lib" (note my typo
before) ensures this directory is searched first.
On 1/23/06, Christopher Fonnesbeck <chris@...941...> wrote:
On Jan 23, 2006, at 2:01 PM, Charlie Moad wrote:
> "LDFLAGS=/tmp/static-libs python setup.py build".
> This will make setuptools look in the directory you specify first.
Does that mean that it will static link to all libraries in /tmp/
static-libs (for example)? Is there any problem with leaving mine in /
usr/local/lib and specifying LDFLAGS=/usr/local/lib?