Skip to content

ldns-config: put $LIBS after -lldns - #291

Open
vapier wants to merge 1 commit into
NLnetLabs:developfrom
vapier:develop
Open

vapier wants to merge 1 commit into
NLnetLabs:developfrom
vapier:develop

Conversation

@vapier

@vapier vapier commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Since $LIBS is the set of libraries used by -lldns, they need to come after it, not before, in order for the linker to properly check. This can be seen when using static libs e.g. -static -lcrypto -lldns as the OpenSSL crypto lib will be dropped by the linker since there are no references when processed, and then -lldns fails due to undefined symbols.

Since $LIBS is the set of libraries used by -lldns, they need to come
*after* it, not before, in order for the linker to properly check.
This can be seen when using static libs e.g. `-static -lcrypto -lldns`
as the OpenSSL crypto lib will be dropped by the linker since there
are no references when processed, and then -lldns fails due to
undefined symbols.
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.

1 participant