| Igor Schein on Fri, 5 Mar 1999 19:39:26 -0500 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Cygwin patch - was Re: pari-2.0.14 |
On Fri, Mar 05, 1999 at 07:54:35PM +0100, Karim BELABAS wrote:
> Hi all,
>
> pari-2.0.14.alpha is now available at
>
> ftp://megrez.math.u-bordeaux.fr/pub/pari/pari.tar.gz
Below a patch which allows to build and install pari-2.0.14 under
CygWin 20.1. Dynamic build doesn't work for some reason, so you need
to run 'Configure --static'. The patch definitely can and needs to be
improved for the next release, unless I can figure out how to make
dynamic build work.
------------------------------------------------------------------------
--- src/gp/highlvl.c~ Fri Mar 5 02:52:05 1999
+++ src/gp/highlvl.c Fri Mar 5 19:13:41 1999
@@ -68,8 +68,9 @@
{
FARPROC f;
HMODULE handle;
-
+#ifdef DL_DFLT_NAME
if (! *lib) lib = DL_DFLT_NAME;
+#endif
if (! *gpname) gpname=name;
handle = LoadLibrary(lib);
--- Configure~ Fri Mar 5 12:24:26 1999
+++ Configure Fri Mar 5 18:23:49 1999
@@ -955,7 +955,7 @@
#
case "$osname-$arch" in
os2-*) ln_s=cp; make_sh=sh; exe_suff=.exe; extraflag="-Zexe" ;;
- cygwin-*) exe_suff=.exe;;
+ cygwin_*) ln_s="ln -s"; make_sh="/bin/sh"; exe_suff=.exe; extraflag="" ;;
*) ln_s="ln -s"; make_sh="/bin/sh"; exe_suff=; extraflag="" ;;
esac
--- config/paricfg.h.SH~ Wed Mar 3 07:35:11 1999
+++ config/paricfg.h.SH Fri Mar 5 18:49:57 1999
@@ -21,11 +21,11 @@
#define __CONFIG_H__
EOT
-case "$osname" in
- cygwin*) echo '#ifdef __CYGWIN32__' >> $file ;
- echo '#include "libpari_dll.h"' >> $file ;
- echo '#endif' >> $file ;;
-esac
+# case "$osname" in
+# cygwin*) echo '#ifdef __CYGWIN32__' >> $file ;
+# echo '#include "libpari_dll.h"' >> $file ;
+# echo '#endif' >> $file ;;
+# esac
cat >> $file << EOT
#define UNIX
------------------------------------------------------------------------
Igor