[Python-Dev] Where is this flag coming from?

Barry A. Warsaw barry@python.org
Tue, 8 Oct 2002 18:30:25 -0400


>>>>> "SM" == Skip Montanaro <skip@pobox.com> writes:

    SM> On my MacOS 10.2 system an unexpected flag is added to the
    SM> link line for the bsddb module:

    |    gcc -bundle -bundle_loader python.exe \
    |      build/temp.darwin-6.1-Power\ Macintosh-2.3/bsddbmodule.o \
    |      -L/sw/lib -L/sw/lib -L/usr/local/lib -Wl,-R/sw/lib -ldb-4.1 \
    |      -o build/lib.darwin-6.1-Power\ Macintosh-2.3/bsddb.so

    SM> None of the other extension modules are linked with
    SM> "-Wl,-R/sw/lib".  I don't find "-R" in either setup.py or
    SM> configure.  Any idea where this is coming from and how to get
    SM> rid of it?

Don't you remember, Skip!?  I think we worked this out when we were
looking at the linking problems with bsddb, since the from-source
Berkeley install doesn't put its libs in a normally searched
location.

These flags get added because of the runtime_library_dirs arg in the
Extension constructor for bsddbmodule.c.

Are you saying that the flags are wrong, the paths are wrong, the
flags are unnecessary, or something else?

-Barry