This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Fix for compilation with runtime_library_dirs
Type: Stage:
Components: Distutils Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: ahonkela, loewis
Priority: normal Keywords: patch

Created on 2004-06-15 12:10 by ahonkela, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python_distutils_rpath.diff ahonkela, 2004-06-15 12:10 Patch against distutils in Python 2.3.4
Messages (2)
msg46186 - (view) Author: Antti Honkela (ahonkela) Date: 2004-06-15 12:10
Compilation of extension modules using
runtime_library_dirs fails on HP Tru64 Unix and IRIX
because distutils tries to use linker option -R/path to
set the rpath.  The correct option on these platforms
is '-rpath /path'. The fix requires a change to
CCompiler.runtime_library_dir_option return value type
because of the need to add two separate arguments,
'-rpath' and '/path'.

According to man page of ld(1) on Tru64, the compiler
would expect a colon separated path as argument for
-rpath and only honors the last of multiple -rpath
arguments, so the module is still broken on Tru64 if
using multiple directories in runtime_library_dirs.
Fixing this would require even greater architectural
changes, so I will skip it, as I don't need it myself.
msg46187 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-29 16:45
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

ccompiler.py 1.60
unixccompiler.py 1.56
ccompiler.py 1.57.10.1
unixccompiler.py 1.54.8.1
NEWS 1.831.4.149
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40404
2004-06-15 12:10:33ahonkelacreate