Skip to content

Fix Mac-specific issues #375

@valassi

Description

@valassi

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?)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions