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

Skip Montanaro skip@pobox.com
Tue, 8 Oct 2002 16:54:40 -0500


On my MacOS 10.2 system an unexpected flag is added to the 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

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

Skip