From 6317991f2b3c487e43203edbc2ffa1b0b98142c0 Mon Sep 17 00:00:00 2001 From: Leoongithub Date: Wed, 7 Dec 2022 18:08:44 +0800 Subject: [PATCH 1/2] Update README.WINDOWS --- README.WINDOWS | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/README.WINDOWS b/README.WINDOWS index 8eb68a7..338d886 100644 --- a/README.WINDOWS +++ b/README.WINDOWS @@ -72,29 +72,20 @@ and Un*x tools for Windows. The major porting work for Cygwin was performed by Thomas Jones-Low (tjoneslo at softstart dot com). -In March 2009, Michael Penk (mpenk at wuska dot com) reported success in -installs under Cygwin: +In December 2022, Leoongithub successfully compiled calc-2.14.1.2 under +cygwin 2.924 (64 bit). The following are the compilation steps. - On my fairly complete Cygwin installs, everything compiles, - checks, and installs correctly. My Cygwin is configured - in a very standard way (out of the box, using all of Cygwin's - defaults). The install worked on 5 different machines with - Cygwin on them: one XP home, one XP professional, and three - Vista professionals. +Install the latest version of cygwin (https://cygwin.com/install.html). +In addition to the default packages, you also need to check these three +packages: gcc-core, make, and libreadline-devel. The version of these +packages does not matter. Just choose the latest version. -Using the calc Makefile, he did the following: +Execute following commands in the source code directory: - make all target=Cygwin + make all make check make install -He also reports: - - Of course, one should be logged in as an Administrator when - one builds and installs calc. - -He was compiling calc 2.12.4.0 with Cygwin version 1.5.25-15. - =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-= If all else fails, for Cygwin =-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= From 21be7adb82d2d49e448216647f3dcb0f34d588a3 Mon Sep 17 00:00:00 2001 From: Leoongithub Date: Wed, 7 Dec 2022 18:14:11 +0800 Subject: [PATCH 2/2] Fix Cygwin compile error --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6e98240..6068d9d 100644 --- a/Makefile +++ b/Makefile @@ -1811,7 +1811,7 @@ CCWERR= CCOPT= ${DEBUG} CCMISC= # -LCC= x86_64-w64-mingw32-gcc +LCC= cc CC= ${PURIFY} ${LCC} ${CCWERR} # endif