-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
As a part of PR #367 about shared libraries, I added rpath to the executable builds, to make it unnecessary to add LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH). The rpath ORIGIN does not work on Mac,
c++ -o check.exe ./check_sa.o -ldl -pthread -L../../lib -lmg5amc_common -Wl,-rpath='$ORIGIN/../../lib' -L../../lib -lmg5amc_cxx
ld: unknown option: -rpath=$ORIGIN/../../lib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [check.exe] Error 1
I will need to fix that.
https://github.com/madgraph5/madgraph4gpu/runs/5074122375?check_suite_focus=true
https://stackoverflow.com/questions/26280738
En passant I noticed that there are also a few other issues, eg /proc/cpuinfo does not exist on Mac.
I open thic catch-all issues to fix all of these in the various makefiles and scripts (and possibly in code if necessary?)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels