package/pkg-generic: make libtool .la files compatible with per-package directories
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 5 Nov 2019 16:46:42 +0000 (17:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 29 Nov 2019 14:24:05 +0000 (15:24 +0100)
commitb27fb7871c6bce02434f74af457a9bc4312bd932
tree2d495f1af607b6a6d96e41e8efeeb63dd89865c0
parentd9a4c0c7ea0465034157a0e0660d9223095ca922
package/pkg-generic: make libtool .la files compatible with per-package directories

Libtool .la files unfortunately contain a number of absolute paths,
which now refer to per-package directories. Due to this, when building
package A, .la files may contain absolute paths referring to
directories in package B per-package sysroot. This causes some -L
flags referring to other sysroot from being added, which doesn't work
as the linker no longer realizes that such paths are within its
sysroot.

To fix this, we introduce a replacement step of .la files in the
configure step, to make sure all paths refer to this package
per-package directory.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-generic.mk