summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2017-01-20 11:15:36 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-01-23 12:45:07 +0100
commitbefaaf6caaed00f397db80623b566bf130240e1c (patch)
tree3c447f423f1d9c4350ed195a955467507cbb3daf
parent7b69ed1c01d74476ffb0f964b0e9b83099c992e2 (diff)
downloadptxdist-befaaf6caaed00f397db80623b566bf130240e1c.tar.gz
ptxdist-befaaf6caaed00f397db80623b566bf130240e1c.tar.xz
gobject-introspection: Fix rpath lookup for symlinked packagesptxdist-2017.01.0
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 <m.tretter@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/host-gobject-introspection.make2
1 files changed, 1 insertions, 1 deletions
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"' \