From fd40fbfc664100465e49d89b2c6325220f603572 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 8 Nov 2020 01:59:19 +0000 Subject: [PATCH] sde-build-tools: make sure we don't can't a .a for fl_wrapper Signed-off-by: Alejandro Mery --- bin/sde-build-tools | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/sde-build-tools b/bin/sde-build-tools index 515790d..d2752a0 100755 --- a/bin/sde-build-tools +++ b/bin/sde-build-tools @@ -286,8 +286,9 @@ if [ ! -f $TOOLSDIR/.lastupdate ] ; then # Flist Wrapper Library # if [ "$SDECFG_FLIST" = "flwrapper" ] ; then - FLWRAPPER_LIBC=$(ls -1 "$xroot"/{lib64,lib}/libc[.-]* \ - "$xroot"/{lib64,lib}/*/libc[.-]* 2>/dev/null | + FLWRAPPER_LIBC=$(ls -1 \ + "$xroot"/lib*/{*/,}libc[.-]* 2> /dev/null | + grep -v '\.a$' | grep '\.so' | sort -V | head -n1 ) if [ ! -f "$FLWRAPPER_LIBC" ]; then abort 'Unable to detect /lib/libc.* for flwrapper'