Open kevinxie4c opened 1 year ago
On MacOS (at least on MacOS 12 I tested), rpath should be a single path (instead of colon-separated paths). Otherwise, the loader might fail to load the dependencies. Check out this blog. So the arguments passed to g++ should look like this
rpath
g++
LD_RUN_PATH="/path/aaa:/path/bbb" g++ -Wl,-rpath,"/path/aaa" -Wl,-rpath,"/path/bbb" ...
On MacOS (at least on MacOS 12 I tested),
rpath
should be a single path (instead of colon-separated paths). Otherwise, the loader might fail to load the dependencies. Check out this blog. So the arguments passed tog++
should look like this