toolchain: detect external glibc in merged /usr
authorCam Hutchison <camh@xdna.net>
Sun, 3 Sep 2017 21:00:43 +0000 (07:00 +1000)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 19 Sep 2017 20:43:10 +0000 (22:43 +0200)
commitb55ff5a7cdaa8a45101d11a3c095d9aeab1f0ce4
treed09eedf263c613842331f9950f2a2a202fc9d4c8
parent23eae11e0b0e8563ccd742545cb2d2ca1a99f9a8
toolchain: detect external glibc in merged /usr

When using an external toolchain that was built with Buildroot and a
merged /usr, the dynamic linker is actually in /usr/lib.

But the check_glibc macro limits the depth it is looking for the dynamic
linker, and misses it when it is in /usr/lib because it is too deep.

We could fix that in two ways: increase the depth in which we look
for it, or follow symlinks. We choose the second solution.

Signed-off-by: Cam Hutchison <camh@xdna.net>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
toolchain/helpers.mk