]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Another attempt at finding the correct libdir
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 6 Mar 2025 12:03:59 +0000 (13:03 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 7 Mar 2025 16:25:07 +0000 (17:25 +0100)
builder-support/helpers/install_quiche.sh

index 3c82fc9fc56d5d325974bbee4a764599cd7e7106..0674ebcbbb7e57ce090e3b3955808e60a2056a42 100755 (executable)
@@ -18,10 +18,16 @@ if [ $(uname) = Darwin ]; then
   SOEXT=dylib
 fi
 LIBDIR="${INSTALL_PREFIX}/lib"
-if [ -d "${INSTALL_PREFIX}/lib64" ]; then
-  # RHEL and co
-  LIBDIR="${INSTALL_PREFIX}/lib64"
+
+if [ $(uname) != Darwin ]; then
+  for tentative in "${INSTALL_PREFIX}/lib/x86_64-linux-gnu" "${INSTALL_PREFIX}/lib/aarch64-linux-gnu" "${INSTALL_PREFIX}/lib64" "${INSTALL_PREFIX}/lib"; do
+    if [ -f "${tentative}/libc.so" ]; then
+      LIBDIR="${tentative}"
+      break
+    fi
+  done
 fi
+echo "LIBDIR is ${LIBDIR}"
 
 cd /tmp
 echo $0: Downloading ${QUICHE_TARBALL}