I am trying to install Openloops on a Mac with Scons using their provided SConstruct file. During the installation process I get the following error:
ld: unknown option: -rpath=$ORIGIN
collect2: error: ld returned 1 exit status
scons: *** [lib/librambo.dylib] Error 1
scons: building terminated because of errors.
I already know how that error could be solved, since in Mac OS you have to replace the equal sign behind rpath with a comma. However, this command is not executed by me but by the Scons script. Does anyone know if I can tell scons to parse a comma instead of the equal sign? Alternatively, can I tell bash or zsh to alias -rpath=
with -rpath,
somehow?
CodePudding user response:
Please try adding the following to the SConstruct
RPATHPREFIX="-rpath,"
In this part of the file: https://gitlab.com/openloops/OpenLoops/-/blob/master/SConstruct#L381
CodePudding user response:
Within the installation path of scons-local-3.0.x/Scons I edited the files Environment.py, Tool/gnulink.py, and Tool/gdc.py and replaced -rpath=
with rpath,
, the string appears once in each of the files.