NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
295 stars 99 forks source link

fix ldns.pc installation when building out-of-source #123

Closed fcelda closed 3 years ago

fcelda commented 3 years ago

If ldns is built from a directory which is different from the source directory, the installation will fail as libldns.pc is searched in a wrong path.

This PR fixes the problem.

Reproducer:

cd ldns
mkdir build
cd build
../configure
make
make install
Hello71 commented 2 years ago

this change actually breaks out-of-source builds. packaging/libldns.pc is generated four lines up, in the build directory, not the source directory.

wtoorop commented 2 years ago

Indeed! Thanks @Hello71 for pointing that out. @fcelda You must have seen something else... Reverted the commit in b036d8f3