include/prereq-build: fix ldconfig-stub symlink on macos and BSD OSs
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 27 Sep 2022 14:54:42 +0000 (16:54 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 27 Sep 2022 14:54:42 +0000 (16:54 +0200)
commitc092b3ba63e0a60be2a5bc9aa716c26f4c6f3755
tree6d461c78e0092fff625bf22824de62297005e286
parenta29d3bc48c40c6a2a93ae1806bea2ac26455cdbb
include/prereq-build: fix ldconfig-stub symlink on macos and BSD OSs

Some OS may have the true bin to a different location than /bin/true.
BSD based system and macos have true on /usr/bin/true.

Fix this by checking both location and take the one available in the
system.

Reported-by: Sergey V. Lobanov <sergey@lobanov.in>
Suggested-by: Huangbin Zhan <zhanhb88@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/prereq-build.mk