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.

Author Dakon
Recipients Dakon
Date 2019-02-22.16:05:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550851517.09.0.227487072045.issue36081@roundup.psfhosted.org>
In-reply-to
Content
My use case is: LDFLAGS=-Wl,-rpath,'$ORIGIN/../lib'

This works fine for everything build directly by the Makefile, but for everything that is build through the python distutils this breaks. This is not an issue of the python side, it happens because the Makefile passes the information to python using LDSHARED='$(BLDSHARED)'. At this point the variable is expanded and the $ORIGIN is expanded by the shell (or so) before passing it to python, so python actually received "-Wl,-rpath,/../lib" from the environment variable.

I have worked around locally by doing something like $(subst $$,~dollar~,$(BLDSHARED)) and replacing that inside python with \\$ or so. Really hacky, but works for my current setup.
History
Date User Action Args
2019-02-22 16:05:17Dakonsetrecipients: + Dakon
2019-02-22 16:05:17Dakonsetmessageid: <1550851517.09.0.227487072045.issue36081@roundup.psfhosted.org>
2019-02-22 16:05:17Dakonlinkissue36081 messages
2019-02-22 16:05:17Dakoncreate