diff -r -u readline-5.2/support/shlib-install readline-5.2-new/support/shlib-install --- readline-5.2/support/shlib-install Tue Jan 3 19:06:27 2006 +++ readline-5.2-new/support/shlib-install Fri Jul 18 13:54:01 2008 @@ -73,7 +73,7 @@ if [ -z "$uninstall" ]; then chmod 555 ${INSTALLDIR}/${LIBNAME} fi ;; -cygwin*) +cygwin*|mingw*) IMPLIBNAME=`echo ${LIBNAME} \ | sed -e 's,^cyg,lib,' -e 's,[0-9]*.dll$,.dll.a,'` if [ -z "$uninstall" ]; then @@ -184,7 +184,7 @@ fi ;; -cygwin*) +cygwin*|mingw*) # Links to .dlls don't work. Hence shobj-conf used DLLVERSION.dll # instead of so.SHLIB_MAJOR.SHLIB_MINOR. The postinstall above # took care of everything else. diff -r -u readline-5.2/support/shobj-conf readline-5.2-new/support/shobj-conf --- readline-5.2/support/shobj-conf Tue Apr 11 13:15:43 2006 +++ readline-5.2-new/support/shobj-conf Fri Jul 18 13:52:33 2008 @@ -505,6 +505,23 @@ fi ;; +mingw*) + SHOBJ_LD='$(CC)' + SHOBJ_LDFLAGS='-shared -Wl,--enable-auto-import -Wl,--enable-auto-image-base -Wl,--export-all -Wl,--out-implib=$(@).a' + SHLIB_LIBSUFF='dll' + SHLIB_LIBVERSION='$(SHLIB_DLLVERSION).$(SHLIB_LIBSUFF)' + SHLIB_LIBS='$(TERMCAP_LIB)' + + SHLIB_DOT= + # For official cygwin releases, DLLVERSION will be defined in the + # environment of configure, and will be incremented any time the API + # changes in a non-backwards compatible manner. Otherwise, it is just + # SHLIB_MAJOR. + if [ -n "$DLLVERSION" ] ; then + SHLIB_DLLVERSION="$DLLVERSION" + fi + ;; + # # Rely on correct gcc configuration for everything else #