]> code.ossystems Code Review - openembedded-core.git/commitdiff
gtk-doc.bbclass: correctly make the list of directories with shared libraries
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Thu, 5 Oct 2017 14:16:11 +0000 (17:16 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Nov 2017 12:33:10 +0000 (12:33 +0000)
Previously it was working only if only one shared library was found, and
broke when there were several.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
meta/classes/gtk-doc.bbclass

index 906ce7854a9afb8123450a6cabe2e5cf423f1b82..5201c7151c65da84ae28e174c0f37d97bd429cfe 100644 (file)
@@ -48,7 +48,7 @@ do_compile_prepend_class-target () {
 # which may then get deleted (or their dependencies) and potentially segfault
 export GIO_MODULE_DIR=${STAGING_LIBDIR}/gio/modules-dummy
 
-GIR_EXTRA_LIBS_PATH=\`find ${B} -name *.so -printf %h| tr '\n' ':'\`\$GIR_EXTRA_LIBS_PATH
+GIR_EXTRA_LIBS_PATH=\`find ${B} -name *.so -printf "%h\n"|sort|uniq| tr '\n' ':'\`\$GIR_EXTRA_LIBS_PATH
 GIR_EXTRA_LIBS_PATH=\`find ${B} -name .libs| tr '\n' ':'\`\$GIR_EXTRA_LIBS_PATH
 
 if [ -d ".libs" ]; then