If the package directory is a symlink to a local_src directory, find by default does not resolve the symlink. Therefore, libtool does not find the .libs directories, which leads to linking errors for packages using gobject-introspection (e.g., gst-plugins-bad1).
Add the -H command line option to resolve symlinks of the command line arguments. Signed-off-by: Michael Tretter <[email protected]> --- rules/host-gobject-introspection.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/host-gobject-introspection.make b/rules/host-gobject-introspection.make index db40ad99f..2663bbd61 100644 --- a/rules/host-gobject-introspection.make +++ b/rules/host-gobject-introspection.make @@ -42,7 +42,7 @@ $(STATEDIR)/host-gobject-introspection.install.post: @$(call world/install.post, HOST_GOBJECT_INTROSPECTION) @echo '#!/bin/sh' > $(PTXDIST_SYSROOT_CROSS)/bin/g-ir-scanner @echo 'export GI_SCANNER_DISABLE_CACHE=1' >> $(PTXDIST_SYSROOT_CROSS)/bin/g-ir-scanner - @echo 'export pkg_ldflags="$$(find $${pkg_dir} -name .libs -printf "-Wl,-rpath,%p ")$${pkg_ldflags}"' \ + @echo 'export pkg_ldflags="$$(find -H $${pkg_dir} -name .libs -printf "-Wl,-rpath,%p ")$${pkg_ldflags}"' \ >> $(PTXDIST_SYSROOT_CROSS)/bin/g-ir-scanner @echo 'export CC=$(CROSS_CC)' >> $(PTXDIST_SYSROOT_CROSS)/bin/g-ir-scanner @echo 'export GI_CROSS_LAUNCHER="$(PTXDIST_SYSROOT_CROSS)/bin/qemu-cross"' \ -- 2.11.0 _______________________________________________ ptxdist mailing list [email protected]
