* [ptxdist] [PATCH] gobject-introspection: Fix rpath lookup for symlinked packages
@ 2017-01-20 10:15 Michael Tretter
0 siblings, 0 replies; only message in thread
From: Michael Tretter @ 2017-01-20 10:15 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
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>
---
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
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-20 10:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-20 10:15 [ptxdist] [PATCH] gobject-introspection: Fix rpath lookup for symlinked packages Michael Tretter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox