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

Tim Rice tim@multitalents.net
Tue, 8 Oct 2002 21:54:44 -0700 (PDT)


On Tue, 8 Oct 2002, Skip Montanaro wrote:

>
>     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 -R flag in not supported on all systems.
2.2.2b1 build is broken on SCO Open Server now too.

> 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
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org
> http://mail.python.org/mailman/listinfo/python-dev
>

-- 
Tim Rice				Multitalents	(707) 887-1469
tim@multitalents.net