--- configure.orig	2024-12-15 14:19:07
+++ configure	2024-12-15 14:21:26
@@ -9289,16 +9289,16 @@
       #
 # MH       LD_RXLIB_A1="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
 # MH       LD_RXLIB_A2="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
-      LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} ${LDFLAGS} -o \$(@)"
-      LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} ${LDFLAGS} -o \$(@)"
-      LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} ${LDFLAGS} -o \$(@)"
+      LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} ${LDFLAGS} -install_name ${libdir}/\$(@) -o \$(@)"
+      LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} ${LDFLAGS} -install_name ${libdir}/\$(@) -o \$(@)"
+      LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} ${LDFLAGS} -install_name ${libdir}/\$(@) -o \$(@)"
       LD_RXLIB_B1="-L. -l${SHLFILE} -lc \$(SHLIBS)"
       LD_RXLIB_B2="-L. -l${SHLFILE} -lc \$(SHLIBS)"
       LD_RXLIB_UTILB="-L. -l${SHLFILE} -lc \$(SHLIBS) $REGUTIL_TERM_LIB"
       DYN_COMP="-DDYNAMIC -fno-common"
       SHLPRE="lib"
       BUNDLE=".junk"
-      SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
+      SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -headerpad_max_install_names -current_version ${VERSION_UNQUOTED} -compatibility_version ${VER_SOMAJOR}.${VER_SOMINOR} -install_name ${libdir}/${SHLPRE}${SHLFILE}${SHLPST} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
       SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
       if test "$brewaddonsdir" = ""; then
          OTHER_INSTALLS="installmaclib"
