Il 2020-06-08 21:52 Marc Glisse ha scritto:
[handle *-*-msys exactly the same as *-*-mingw* in configure.ac]
configfsf.guess does mention a triple *-pc-msys, so I guess it makes
sense to handle it (or replace it with something we already handle). I
don't really know in what ways it differs from mingw, probably not
that much as far as GMP is concerned.
To build and test a static library, this seems enough.
A test with
./configure --enable-cxx&&make&&make check&&make check-mini-gmp
worked smoothly.
I notice in a generated file:
aclocal.m4: *-*-mingw* ) # actually msys
Should automake also be taught about the msys triple?
You are right. If I understand it correctly, automake does not know how
to build shared libraries under *-pc-msys. So that ./configure
--enable-shared --disable-static outputs
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
and then make check fails.
But msys and mingw are somehow different wrt shared libraries...
./configure --build=$(./config.guess|sed 's/-msys/-mingw64/')
--enable-shared
builds a library that passes "make check-mini-gmp" but the Makefiles are
not able to build the tests for "make check"...
It would be nice to know if there are other libraries using the
autotools that build a shared dll under msys...
Ĝis,
m
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs