From 02086d37deb490c36065f5bad97745a7fcb164bf Mon Sep 17 00:00:00 2001 From: rrt Date: Thu, 7 Sep 2000 11:23:59 +0000 Subject: [PATCH] [project @ 2000-09-07 11:23:59 by rrt] Added support for building gmp.dll again. --- ghc/rts/gmp/Makefile.in | 5 +++++ ghc/rts/gmp/configure | 4 ++++ ghc/rts/gmp/configure.in | 6 +++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ghc/rts/gmp/Makefile.in b/ghc/rts/gmp/Makefile.in index 57650fa..830b649 100644 --- a/ghc/rts/gmp/Makefile.in +++ b/ghc/rts/gmp/Makefile.in @@ -422,6 +422,11 @@ distclean-kr: maintainer-clean-kr: +gmp.dll: libgmp.a + dllwrap -mno-cygwin --target=i386-unknown-mingw32 \ + --export-all --dllname gmp.dll --output-lib=libgmp_imp.a \ + -o gmp.dll libgmp.a + libgmp.la: $(libgmp_la_OBJECTS) $(libgmp_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libgmp_la_LDFLAGS) $(libgmp_la_OBJECTS) $(libgmp_la_LIBADD) $(LIBS) diff --git a/ghc/rts/gmp/configure b/ghc/rts/gmp/configure index bbbe179..5612a78 100644 --- a/ghc/rts/gmp/configure +++ b/ghc/rts/gmp/configure @@ -1344,6 +1344,10 @@ EOF ;; esac +case "${target}" in + *-*-mingw32) gmp_cflags_gcc="$gmp_cflags_gcc -mno-cygwin";; +esac + echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" 1>&6 echo "configure:1349: checking for BSD-compatible nm" 1>&5 if test "${ac_cv_path_NM+set}" = set; then diff --git a/ghc/rts/gmp/configure.in b/ghc/rts/gmp/configure.in index 60c3d4c..e13e0cb 100644 --- a/ghc/rts/gmp/configure.in +++ b/ghc/rts/gmp/configure.in @@ -21,7 +21,7 @@ dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, dnl MA 02111-1307, USA. -AC_REVISION($Revision: 1.5 $)dnl +AC_REVISION($Revision: 1.6 $)dnl AC_PREREQ(2.14)dnl AC_INIT(gmp-impl.h) @@ -308,6 +308,10 @@ case "$target" in ;; esac +case "${target}" in + *-*-mingw32) gmp_cflags_gcc="$gmp_cflags_gcc -mno-cygwin";; +esac + dnl Check for programs needed by macros for finding compiler. dnl More programs are checked for below, when a compiler is found. AC_PROG_NM dnl Macro from Libtool. -- 1.7.10.4