package/unbound: fix detection of libexpat
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 5 Apr 2020 08:22:03 +0000 (10:22 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 5 Apr 2020 14:25:43 +0000 (16:25 +0200)
commit3c4c508e7b7f01c6cc09b665dca866742eb76b70
treee6a114e5bde4203427b8164e379669cf3798966a
parentcdfa84a80d204b2ac0c28103606c2dc4f8bb2f10
package/unbound: fix detection of libexpat

unbound open-codes the detection of libexpat, and as all packages doing
so, look in host paths (/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw
/usr). Obviously this is wrong for cross-compilation.

Do for libexpat as we do for openssl, and point unbound to staging dir,
when we know expat is.

Fixes:
    http://autobuild.buildroot.org/results/a89ea6aa1cd8c253b1260ea227fea3dc9b095fe8/

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Stefan Ott <stefan@ott.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/unbound/unbound.mk