On 05 June 2002, Richard Levitte wrote:

> [[EMAIL PROTECTED] - Tue Jun  4 19:47:39 2002]:
> 
> > Building 0.9.7 (snapshot from June 1) with Cygwin led to several
> > warnings during compilation related to the assembly code now included
> > by default. Despite the warnings, it passed the tests in "make test".
> > Does something need to get fixed? These warnings under Cygwin's port
> > of GCC were errors under the DJGPP port of GCC.
> >                                   Doug
> >
> > (cd asm; /usr/local/bin/perl md5-586.pl cpp >mx86unix.cpp)
> 
> The argument "cpp" should probably be "gaswin" when used with
> Cygwin.  There are probably other changes needed as well, but that's
> what I can guess so far.

Changing "cpp" to "gaswin" doesn't fix the problem, but this patch seems
to do the trick. I haven't tested yet, but I suspect that similar
changes will allow DJGPP to use the asm modules also. I will try to
investigate. Is it likely to make a difference in performance compared
to the "C" code?
                       Doug

--- openssl-0.9.7/crypto/perlasm/x86asm.pl.orig 2000-02-28 11:16:28.000000000 -0800
+++ openssl-0.9.7/crypto/perlasm/x86asm.pl      2002-06-15 20:17:40.000000000 -0700
@@ -87,6 +87,12 @@
 #ifdef OUT
 #define OK     1
 #define ALIGN  4
+#ifdef __CYGWIN__
+#undef TYPE
+#undef SIZE
+#define TYPE(a,b)    
+#define SIZE(a,b)
+#endif /* __CYGWIN__ */
 #endif
 
 #if defined(BSDI) && !defined(ELF)
__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to