I'm not using automake anywhere in ncurses :-)
The compile and ar-lib script of automake is sometimes of use to wrap the msvc compiler.
offhand, I'd do
CC="cl -w4"
(ymmv)
Indeed, cl does not have to be wrapped. (On current master at least, I haven't tested 6.2 yet)
> export LD="link -nologo"
> export LDFLAGS=user32.lib
> export NM="dumpbin -symbols"
> export STRIP=:
> export AR="/usr/share/automake-1.16/ar-lib lib"
I hadn't noticed that before -- but it doesn't appear to have a case for msys2.
which does not wrap AR.
The configure script does not recognize ar and fails when building the archive.
It also contains a fix for the configure script. My patch for aclocal.m4 was not correct.
You should thoroughly check the configure changes,
ok... I was curious if $PATH would be transformed (will find out, a little
later).
I don't think so. I run the program using sh. So maybe?
I'll have to investigate that when I get a development environment set up
for this (have started, but am only halfway through - for the moment am
reviewing/validating the patches against mingw).
I have also pushed a quick CI build script for ncurses on Windows using AppVeyor and conan.
The logs shows my problem with the static build (not recognizing AR) and shared builds.
It also shows mingw building fine.
btw, STDIN_FILENO should be "0" (not "1").
Thanks!
The configure script checks if either --without-progs or --without-tests
was given (both require getopt), so if you add --without-tests, the build
"should" work.
Also thanks, I have disabled the progs in the CI script mentioned above.
Hopefully soon, conan will have a getopt package. (a pr has been sent, waiting on approval)
(The Ada binding also uses getopt, but I don't suppose you're using that).
Nope. ada is disabled.