From: Charlie Moad <cwmoad@gm...> - 2006-01-23 21:17:37
On 1/23/06, Christopher Fonnesbeck <chris@...> wrote:
> On Jan 23, 2006, at 2:01 PM, Charlie Moad wrote:
> > "LDFLAGS=3D/tmp/static-libs python setup.py build".
> > This will make setuptools look in the directory you specify first.
> Thanks Charlie,
> 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=3D/usr/local/lib?
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=3D-L/usr/local/lib" (note my typo
before) ensures this directory is searched first.