[New-bugs-announce] [issue5900] Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used

Floris Bruynooghe report at bugs.python.org
Sat May 2 00:56:05 CEST 2009


New submission from Floris Bruynooghe <floris.bruynooghe at gmail.com>:

The build_ext command does accept a handy --rpath option to encode an
RPATH in the built extension modules.  However RPATH is superseded by
RUNPATH since the former can not be overwritten by the LD_LIBRARY_PATH
environment varialbe, while the later can.  While most linkers will add
a RUNPATH automatically when you ask for an RPATH, GNU ld does not do
this.  Therefore this patch does detect if GNU ld is used and if so will
use the --enable-new-dtags option which will add the RUNPATH.

----------
assignee: tarek
components: Distutils
files: runpath.diff
keywords: patch
messages: 86924
nosy: flub, tarek
severity: normal
status: open
title: Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file13833/runpath.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5900>
_______________________________________


More information about the New-bugs-announce mailing list