commit 928f3bf4a3017931ecc7012688e62d8a03264e61 Author: Andrew Hughes AuthorDate: Thu Jan 16 17:40:36 2025 +0000 Commit: Andrew Hughes CommitDate: Thu Jan 16 22:50:24 2025 +0000 Search /usr/lib64 on architectures other than x86_64 diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 index 4ed8b4fdd6..6ab6dbc075 100644 --- a/common/autoconf/libraries.m4 +++ b/common/autoconf/libraries.m4 @@ -1121,9 +1121,11 @@ AC_DEFUN_ONCE([LIB_SETUP_STATIC_LINK_LIBSTDCPP], AC_MSG_ERROR([Could not locate libffi.so.? for bundling]) fi else - # Fallback on the default /usr/lib dir + # Fallback on the default /usr/lib and /usr/lib64 dirs if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" + elif test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then + LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" else AC_MSG_ERROR([Could not locate libffi.so.? for bundling]) fi