Felix47
Felix47

Reputation: 1

Replacing "-W1,-rpath=\$ORIGIN" with "-W1,-rpath,\$ORIGIN" in Scons

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?

Upvotes: 0

Views: 424

Answers (2)

Felix47
Felix47

Reputation: 1

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.

Upvotes: 0

bdbaddog
bdbaddog

Reputation: 3509

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

Upvotes: 0

Related Questions