pkgconf: use relative path to STAGING_DIR instead of absolute path
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 1 Dec 2017 20:53:38 +0000 (21:53 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 31 Dec 2017 17:24:11 +0000 (18:24 +0100)
commit3f6d39816bdb2cbd544779d82591b0e9e1a9877f
tree5f2a842a3e5ce830937f3a7eedb90f06f48a0410
parent290b4cfe17042f1345e45363d1ce09f04e32f12a
pkgconf: use relative path to STAGING_DIR instead of absolute path

The pkg-config wrapper script is currently generated with absolute
paths to $(STAGING_DIR). However, this will not work properly with
per-package SDK, and each package will be built with a different
STAGING_DIR value.

In order to fix this, we adjust how the pkg-config wrapper script is
generated, so that it uses a relative path to itself: the sysroot (i.e
STAGING_DIR) is always located in $(path of
pkg-config)/../$(STAGING_SUBDIR).

This change is independent from the per-package SDK work, and could be
applied independently from it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkgconf/pkg-config.in
package/pkgconf/pkgconf.mk