diff options
author | bapt <bapt@FreeBSD.org> | 2015-07-01 03:54:23 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-07-01 03:54:23 +0800 |
commit | f53f8a71e0ed8c066574c032cb2456ec05eb1357 (patch) | |
tree | 50777d58fe4d9eeea753c18e959184e8541081ea /Mk | |
parent | 49a26078be759f8e9447725e1306f2bceb6fe514 (diff) | |
download | freebsd-ports-gnome-f53f8a71e0ed8c066574c032cb2456ec05eb1357.tar.gz freebsd-ports-gnome-f53f8a71e0ed8c066574c032cb2456ec05eb1357.tar.zst freebsd-ports-gnome-f53f8a71e0ed8c066574c032cb2456ec05eb1357.zip |
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)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Scripts/do-depends.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |