I grabbed the latest CVS version of distutils, as of 3/15/2000.
I'm building C Python extensions under Solaris and Linux. Under Solaris, I need to specify the '-R' options. 'rpath' is documented to do this, but doesn't have any affect.
In ccompiler.py, I notice the _fix_link_args() routine manipulates libraries and library_dirs, but doesn't use rpath.
I suspect _fix_link_args() is part of what needs to be fixed.
Anyone else using 'rpath'?
--
Joe VanAndel
National Center for Atmospheric Research
http://www.atd.ucar.edu/~vanandel/
Internet: vanandel@ucar.edu
Joe Van Andel: |I grabbed the latest CVS version of distutils, as of 3/15/2000. | |I'm building C Python extensions under Solaris and Linux. Under Solaris, |I need to specify the '-R' options. 'rpath' is documented to do this, |but doesn't have any affect. | |In ccompiler.py, I notice the _fix_link_args() routine manipulates |libraries and library_dirs, but doesn't use rpath. | |I suspect _fix_link_args() is part of what needs to be fixed.
Just wanted to pitch in that we need this for IRIX and FreeBSD as well:
- Solaris - -R
- IRIX - -rpath
- FreeBSD - -rpath
Randall
On 15 March 2000, Joe Van Andel said:
I'm building C Python extensions under Solaris and Linux. Under Solaris, I need to specify the '-R' options. 'rpath' is documented to do this, but doesn't have any affect.
Oops, thanks for spotting that! That feature was only partially implemented.
In ccompiler.py, I notice the _fix_link_args() routine manipulates libraries and library_dirs, but doesn't use rpath.
Sorta. It's really the job of 'gen_lib_options()', in ccompiler.py, and the methods in unixccompiler and msvccompiler that call it. Anyways, I've fixed it and checked the change it. Not tested though -- please try again with the latest CVS version and let me know how it works.
BTW, Joe, you keep finding nice juicy bugs in the Distutils. Could I get my hands on your extensions and setup script? The setup script might be a nice example to distribute with the Distutils, and the whole package would definitely be another good test case for me.
Greg
-- Greg Ward - Unix weenie gward@python.net http://starship.python.net/~gward/ I always have fun because I'm out of my mind!!!