diff --git a/Makefile.in b/Makefile.in index 52bcbb1..a263b7d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -251,6 +251,15 @@ $(LIBOBJS): mxml.h mxml-entity.o mxml-file.o mxml-private.o: mxml-private.h +# +# libmxml1.dll +# + +libmxml1.dll: $(LIBOBJS) + echo Creating $@... + $(DSO) $(DSOFLAGS) -o $@ $(LIBOBJS) + + # # libmxml.so.1.5 # diff --git a/configure b/configure index d9a4995..b0ee9ef 100755 --- a/configure +++ b/configure @@ -4560,6 +4560,14 @@ $as_echo "yes" >&6; } DSOFLAGS="$DSOFLAGS \$(RC_CFLAGS) -dynamiclib -lc" ;; + mingw) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + LIBMXML="libmxml1.dll" + DSO="\$(CC)" + DSOFLAGS="$DSOFLAGS -shared -Wl,--out-implib,libmxml1.a,--no-undefined,--enable-runtime-pseudo-reloc" + ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } diff --git a/configure.ac b/configure.ac index a795376..b51a36e 100644 --- a/configure.ac +++ b/configure.ac @@ -226,6 +226,13 @@ if test x$enable_shared != xno; then DSOFLAGS="$DSOFLAGS \$(RC_CFLAGS) -dynamiclib -lc" ;; + mingw) + AC_MSG_RESULT(yes) + LIBMXML="libmxml1.dll" + DSO="\$(CC)" + DSOFLAGS="$DSOFLAGS -shared -Wl,--out-implib,libmxml1.a,--no-undefined,--enable-runtime-pseudo-reloc" + ;; + *) AC_MSG_RESULT(no) AC_MSG_WARN(shared libraries not supported on this platform.)