Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Nov 14, 2016

Conversation

boegel
Copy link
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
Member Author

boegel commented Nov 12, 2016

@wpoely86 please review?

self.lib_exts = []

def configure_step(self, *args, **kwargs):
"""Configure build using 'make config' (only for recent versions (>= v5))."""

if LooseVersion(self.version) >= LooseVersion("5"):

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