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

Only link to libraries that are actually needed #133

Closed
wants to merge 1 commit into from

Conversation

jmcarcell
Copy link
Contributor

BEGINRELEASENOTES

  • Hardcode the LCIO and Marlin libraries to only link to the libraries that are actually needed

ENDRELEASENOTES
For example Marlin builds a library called MarlinXML that libraries here don't need to link to

@jmcarcell jmcarcell marked this pull request as draft August 1, 2023 07:26
@@ -27,7 +27,7 @@ gaudi_add_module(k4MarlinWrapperPlugins
src/components/LcioEventOutput.cpp
LINK
Gaudi::GaudiAlgLib
${Marlin_LIBRARIES}
Marlin
Copy link
Collaborator

Choose a reason for hiding this comment

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

This just makes cmake add -lMarlin, so you would have to add -L /path/to/marlin/lib as well.

Or you make Marlin create targets.

Or you add -Wl,--as-needed
But make sure that doesn't drop libraries that we need for the EDM at runtime, but not at linktime?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah forget about this PR for now, I should just close it and have to find how to solve my issues in a different way I think

@jmcarcell jmcarcell closed this Aug 3, 2023
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