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'