diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-07-27 01:02:35 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-08-06 23:26:30 +0200 |
commit | 81d009fc269a61ce6965455cba4315ade91f983f (patch) | |
tree | 4ed95bd928d326ea43e3c741e781c74e0a125f1f /scripts/lib/ptxd_make_world_install.sh | |
parent | 4c54273ad54867d56d0d366fec6284630cb2cb3d (diff) | |
download | ptxdist-81d009fc269a61ce6965455cba4315ade91f983f.tar.gz ptxdist-81d009fc269a61ce6965455cba4315ade91f983f.tar.xz |
[ptxd_make_world_install] activate .pc file mangler, don't add sysroot in pkg-config-wrapper anymore
pkg-config's .pc file are now relocatable, the pkg-config-wrapper isn't
needed anymore. Thus it's disabled now.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_install.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_install.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh index c15704890..1548053a6 100644 --- a/scripts/lib/ptxd_make_world_install.sh +++ b/scripts/lib/ptxd_make_world_install.sh @@ -31,6 +31,7 @@ ptxd_make_world_install_pkg() { export -f ptxd_make_world_install_pkg + # # install # @@ -54,10 +55,16 @@ ptxd_make_world_install_target() { # prefix paths in la files with sysroot find "${pkg_pkgdir}" -name "*.la" -print0 | xargs -r -0 -- \ - sed -i -e "/^dependency_libs/s:\( \)\(/lib\|/usr/lib\):\1${PTXDIST_SYSROOT_TARGET}\2:g" \ + sed -i \ + -e "/^dependency_libs/s:\( \)\(/lib\|/usr/lib\):\1${PTXDIST_SYSROOT_TARGET}\2:g" \ -e "/^libdir=/s:\(libdir='\)\(/lib\|/usr/lib\):\1${PTXDIST_SYSROOT_TARGET}\2:g" && check_pipe_status && + # make pkgconfig's pc files relocatable + find "${pkg_pkgdir}" -name "*.pc" -print0 | \ + xargs -r -0 gawk -f "${PTXDIST_LIB_DIR}/ptxd_make_world_install_mangle_pc.awk" + check_pipe_status && + cp -dprf -- "${pkg_pkgdir}"/* "${PTXDIST_SYSROOT_TARGET}" } export -f ptxd_make_world_install_target |