summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/ptxd_make_world_install.sh')
-rw-r--r--scripts/lib/ptxd_make_world_install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index 26a5ec160..19b301fe3 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -223,6 +223,10 @@ ptxd_make_world_install_post() {
if [ -n "${pkg_pkg_dir}" -a -d "${pkg_pkg_dir}" ]; then
find "${pkg_pkg_dir}"{,/usr}/{lib,share}/pkgconfig -name *.pc \
-printf "%f\n" 2>/dev/null | sed 's/\.pc$//'
+ elif [ "${pkg_type}" != "target" -a -n "${pkg_build_dir}" -a -d "${pkg_build_dir}" ]; then
+ # workaround for packages that install directly to sysroot
+ find "${pkg_build_dir}" -name *.pc \
+ -printf "%f\n" 2>/dev/null | sed 's/\.pc$//'
fi
for dep in ${pkg_build_deps}; do
case "${dep}" in