8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Next attempt to better detect default libdir

This commit is contained in:
AlexPeshkoff 2021-05-20 16:39:38 +03:00
parent bbcbcbccc7
commit 0397853401

View File

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