From ab8c1339c4c462f4f34bf6de881adc42a406bd9e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 30 Jun 2015 19:54:23 +0000 Subject: [PATCH] Add PATH environment when trying to find libraries this fixes building under qemu emulation Reported by: Sylvain Garrigues (via #poudriere) Tested by: Sylvain Garrigues (via #poudriere) --- Mk/Scripts/do-depends.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mk/Scripts/do-depends.sh b/Mk/Scripts/do-depends.sh index 39805bdceec6..b3f3fb097d67 100644 --- a/Mk/Scripts/do-depends.sh +++ b/Mk/Scripts/do-depends.sh @@ -94,7 +94,7 @@ find_file_path() find_lib() { echo -n "===> ${dp_PKGNAME} depends on shared library: $1" - libfile=$(env -i LIB_DIRS="${dp_LIB_DIRS}" LOCALBASE="${dp_LOCALBASE}" ${dp_SH} ${dp_SCRIPTSDIR}/find-lib.sh $1) + libfile=$(env -i PATH="${PATH}" LIB_DIRS="${dp_LIB_DIRS}" LOCALBASE="${dp_LOCALBASE}" ${dp_SH} ${dp_SCRIPTSDIR}/find-lib.sh $1) if [ -z "${libfile}" ]; then echo " - not found" return 1