8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

New method to define default lib directory

This commit is contained in:
AlexPeshkoff 2021-05-20 15:53:48 +03:00
parent 10c7e090f4
commit e4fbeb5bb8

View File

@ -475,24 +475,10 @@ standaloneServerInstalled() {
#------------------------------------------------------------------------
# Corrects build-time "libdir" value
# Warning - parameter ignored !!!
CorrectLibDir() {
ld=${1}
l=/usr/lib
l64=/usr/lib64
if [ "$ld" = "$l64" ]
then
if [ -d "$l" ]
then
if [ ! -d "$l64" ]
then
ld="$l"
fi
fi
fi
echo "$ld"
dirname $(ldconfig -p | grep ld-linux | awk -F '>' '{print $2;}')
}