Skip to content

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

Open
vapier wants to merge 1 commit intoNLnetLabs:developfrom
vapier:develop
Open

ldns-config: put $LIBS after -lldns#291
vapier wants to merge 1 commit intoNLnetLabs:developfrom
vapier:develop

Conversation

@vapier
Copy link
Contributor

@vapier vapier commented Jan 12, 2026

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