Skip to content

Conversation

@lorisercole
Copy link
Contributor

When the compiler is invoked with the -c flag, the linker is not run.
In this case, the RPATH linker flags are useless. Although they are
normally ignored, adding them has shown to cause problems in some cases,
e.g. with Intel + Meson:
easybuilders/easybuild-easyconfigs#20262

The behavior of the rpath_args.py script has been modified so that RPATH
flags are not added when the -c flag is detected.
Moreover, it is now able to detect and process any RPATH flag that may have
been added explicitly by the user/build system.
Tests have been updated to check all these possible scenarios.

Fixes easybuilders/easybuild-easyconfigs#23031
Fixes #4979

When the compiler is invoked with the `-c` flag, the linker is not run.
In this case, the RPATH linker flags are useless. Although they are
normally ignored, adding them has shown to cause problems in some cases,
e.g. with Intel + Meson:
easybuilders/easybuild-easyconfigs#20262

The behavior of the `rpath_args.py` script has been modified to not add
RPATH flags when the `-c` flag is detected.
Moreover, it is now able to detect any RPATH flag that may have been
added explicitly by the user/build system.
Tests have been updated to check these scenarios.

Fixes easybuilders/easybuild-easyconfigs#23031
Fixes easybuilders#4979
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit b86526e into easybuilders:develop Aug 27, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants