Message336326
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. |
|
Date |
User |
Action |
Args |
2019-02-22 16:05:17 | Dakon | set | recipients:
+ Dakon |
2019-02-22 16:05:17 | Dakon | set | messageid: <1550851517.09.0.227487072045.issue36081@roundup.psfhosted.org> |
2019-02-22 16:05:17 | Dakon | link | issue36081 messages |
2019-02-22 16:05:17 | Dakon | create | |
|