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

Do not overwrite default linker flags so that LDFLAGS environment variable is considered #110

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Apr 11, 2021

If one wants to specify additional linked flags, those should be appended to CMAKE_SHARED_LINKER_FLAGS, not overwrite it as this would lead to the LDFLAGS environment variable to be ignored, leading to linking errors in some environments (for example conda).

For more details see:

It would be convenient to tag a released after this fix is integrated to fix the conda binary generation at the robotology-superbuild level (see robotology/robotology-superbuild#681). Let me know if you want to do that or you like me to do it.

Fix robotology/robotology-superbuild#681 .

@traversaro
Copy link
Member Author

FYI @Yeshasvitvs @lrapetti

Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

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

Tweaking the linker flags is a legacy that originated here in wearables few years ago and I personally spread all over the projects I either developed or maintained. Thanks for taking care of all the repositories that were affected, I'm going to accept all the PRs without commenting all of them 😉

I leave handling the releasing process to the current developers.

Copy link
Member

@yeshasvitirupachuri yeshasvitirupachuri left a comment

Choose a reason for hiding this comment

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

Thanks @traversaro

Copy link
Member

@lrapetti lrapetti left a comment

Choose a reason for hiding this comment

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

Thanks @traversaro, I'll take care of creating a new tag

@lrapetti lrapetti merged commit de25712 into master Apr 12, 2021
@lrapetti lrapetti deleted the fix-ldflags branch April 12, 2021 08:25
@lrapetti lrapetti added this to the AnDy - Iteration 60 milestone Apr 12, 2021
@lrapetti
Copy link
Member

It would be convenient to tag a released after this fix is integrated to fix the conda binary generation at the robotology-superbuild level (see robotology/robotology-superbuild#681). Let me know if you want to do that or you like me to do it.

@traversaro Done https://github.com/robotology/wearables/releases/tag/v1.2.1

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.

Conda Linux CI build fail due to linking problem in Wearables
4 participants