On 12/9/21 11:31, Gabor Boros wrote:
2021.12.08. 18:25 keltezéssel, Gabor Boros írta:
2021.12.08. 17:55 keltezéssel, Alex Peshkoff via Firebird-devel írta:

No, sorry. I don't know how, but the bigger problem is I don't know the good solution.

Gabor


The below script works with aarch64 and x86_64 for me, but with Debian 11 32bit the result of "uname -m" is i686 and the library name just "ld-linux.so.2".

#!/bin/sh
clear
LDL=$(echo "ld-linux-$(uname -m)" | sed "s/_/-/")
dirname $(ldconfig -p | grep $LDL | awk -F '>' '{print $2;}')



Try such function please:

CorrectLibDir() {
    ld=${1}

    case $(uname -m) in
        i686)
            LDL=ld-linux.so.2
            ;;
        x86_64)
            LDL=ld-linux-x86-64.so.2
            ;;
        aarch64)
            LDL=ld-linux-aarch64.so.2
            ;;
        *)
            echo $ld
            return
            ;;
    esac

    dirname $(ldconfig -p | grep $LDL | awk -F '>' '{print $2;}')
}





Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to