Skip to content

Conversation

@fabianbs96
Copy link
Member

The cmake option PHASAR_DEBUG_LIBDEPS does not correctly verify that all dependencies are resolved.

To fix this, we now use the linker flag -Wl,-z,defs that reports a linker error if a library contains unresolved symbols.
We also fix dependency errors that were newly discovered by this.

@fabianbs96 fabianbs96 added the bug Something isn't working label Feb 8, 2024
@fabianbs96 fabianbs96 self-assigned this Feb 8, 2024
@fabianbs96 fabianbs96 requested a review from MMory as a code owner February 8, 2024 10:38
@fabianbs96 fabianbs96 added the in-tree This issue refers to the in-tree build label Feb 8, 2024
@fabianbs96 fabianbs96 added this to the Release 2403 milestone Feb 8, 2024
Copy link
Member

@MMory MMory left a comment

Choose a reason for hiding this comment

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

lgtm, good that you discovered and did this, thanks!

build: [ Debug, Release ]
include:
- build: Debug
flags: -DPHASAR_BUILD_DYNLIB=ON -DPHASAR_ENABLE_SANITIZERS=ON
Copy link
Member

Choose a reason for hiding this comment

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

reverse the swap?

@MMory MMory merged commit fec44a5 into development Feb 29, 2024
@MMory MMory deleted the f-FixDebugLibDeps branch February 29, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working in-tree This issue refers to the in-tree build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants