Skip to content

avoid CMake fiddling with the RPATHs injected by EasyBuild via --rpath#1031

Merged
boegel merged 3 commits intoeasybuilders:developfrom
boegel:cmake_rpath
Nov 14, 2016
Merged

avoid CMake fiddling with the RPATHs injected by EasyBuild via --rpath#1031
boegel merged 3 commits intoeasybuilders:developfrom
boegel:cmake_rpath

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Nov 11, 2016

Passing -DCMAKE_SKIP_RPATH=ON when using --rpath is required to avoid that CMake strips all RPATHs from the built binaries/libraries before actually installing them (which it does by default, urgh).

Required to get METIS to build in conjunction with --rpath (cfr. easybuilders/easybuild-framework#1942).

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Nov 12, 2016

@wpoely86 please review?

Comment thread easybuild/easyblocks/m/metis.py Outdated

if build_option('rpath'):
# patch Makefile to tell CMake not to wipe the RPATHs we inject...
apply_regex_substitutions('Makefile', [(r'^(CONFIG_FLAGS\s*=\s*)', r'\1-DCMAKE_SKIP_RPATH=ON ')])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no space between \1 and -D...?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be there already, but doesn't hurt to make sure, you're right, I'll add it.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Nov 13, 2016

Thanks for the review @wpoely86!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants