On Friday, June 12, 2015 at 7:31:53 AM UTC-5, Bill Hart wrote:
>
> I have a puzzler.
>
> I've updated config.guess etc. to allow -pc-msys when using msys2.
>
> On my machine I get haswell-pc-msys, for example.
>
> Now in configure, we have:
>
> case $host in
>   *-pc-msys|*-*-cygwin* | *-*-mingw*)
>
It looks fine.

Did you look at the output? and try to run the piece of code concerned in a 
shell?
 

>     # By default, build only static.
>     if test -z "$enable_shared"; then
>       enable_shared=no
>     fi
>     # Don't allow both static and DLL.
>     if test "$enable_shared" != no && test "$enable_static" != no; then
>       AC_MSG_ERROR([cannot build both static and DLL, since mpir.h is 
> different for each.
> Use "--disable-static --enable-shared" to build just a DLL.])
>     fi
>
> ...
>
> Now on Cygwin and Mingw if I just run configure, it stops with the 
> complaint above about not being able to build both a shared and static 
> library.
>
> But on Msys it doesn't.
>
> I even tried:
>
> ./configure --enable-static --enable-shared
>
> and it just sails straight through without a complaint.
>
> Of course this is Windows, so we want to prevent building both static and 
> shared libs.
>
> Does anyone have any idea or even guesses why the logic above is working 
> for Cygwin and Mingw but not Msys2?
>
> ------
>
> Another problem I am having is that Mingw now doesn't provide _P_WAIT, 
> which is used by libtool (only on Mingw) when doing make check. I did 
> autoreconf -fiv --no-recursive, which just replaces lt_main.sh with a 
> version that inserts _P_WAIT on Mingw.
>
> Since msys2 has been out for ages now, I can't believe this hasn't been 
> fixed yet. So I must not be updating lt_main.sh correctly. Does anyone have 
> any idea about how it should be done?
>
> Bill.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to