[Python-Dev] Where is this flag coming from?
Skip Montanaro
skip@pobox.com
Tue, 8 Oct 2002 22:24:36 -0500
SM> None of the other extension modules are linked with "-Wl,-R/sw/lib".
SM> I don't find "-R" in either setup.py or configure. Any idea where
SM> this is coming from and how to get rid of it?
BAW> Don't you remember, Skip!? I think we worked this out when we were
BAW> looking at the linking problems with bsddb, since the from-source
BAW> Berkeley install doesn't put its libs in a normally searched
BAW> location.
I remember having problems with bsddb, which I think were fixed.
-Wl,-R/sw/lib is clearly wrong on MacOS X though. Deleting it and running
the link command manually works.
BAW> Are you saying that the flags are wrong, the paths are wrong, the
BAW> flags are unnecessary, or something else?
The flags are incorrect:
...
building 'bsddb' extension
gcc -bundle -bundle_loader python.exe \
build/temp.darwin-6.1-Power\ Macintosh-2.3/bsddbmodule.o \
-L/sw/lib -L/home/skip/local/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
ld: unknown flag: -R/sw/lib
...
Skip