$ ldns-config --libs -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -L/usr/lib64 -lpython2.7 -L/usr/lib64 -lcrypto -ldl -lldns I feel like -lpython2.7 got there unnecessarily, esp. that shared libldns doesn't link to it.
This seems to be dependent on the python USE flag, with this version and uses this issue doesn't happen: # equery u ldns [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for net-libs/ldns-1.6.17: U I + + abi_x86_32 : 32-bit (x86) libraries + + dane : Enable DNS-based Authentication of Named Entities (DANE) support - - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally + + ecdsa : Enable ECDSA support + + gost : Enable GOST support - - python : Add optional support/bindings for the Python language + + python_single_target_python2_7 : Build for Python 2.7 only + + python_targets_python2_7 : Build with Python 2.7 + + ssl : Add support for Secure Socket Layer connections - - static-libs : Build static versions of dynamic libraries as well - - vim-syntax : Pulls in related vim syntax scripts
Looks like this is not an issue anymore: # ldns-config --libs -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -lssl -lcrypto -lldns b612-dev3-desktop /var/db/repos/gentoo/net-libs/ldns # equery u ldns [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for net-libs/ldns-1.8.3-r2: U I - - abi_x86_32 : 32-bit (x86) libraries - - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally - - examples : Install examples, usually source code + + python : Add optional support/bindings for the Python language + + python_single_target_python3_10 : Build for Python 3.10 only - - python_single_target_python3_11 : Build for Python 3.11 only - - python_single_target_python3_9 : <unknown>
Thanks.