From d6cf7c44a1ff98293ce71cdf5d9d195c2b89caa6 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 15 Sep 2005 00:49:46 +0000 Subject: [PATCH] Fixes for Cygwin. Organization: Straylight/Edgeware From: mdw --- Makefile.am | 9 ++++----- unihash-check.pl | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index e5c1f1f..aa3aa1d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -89,9 +89,11 @@ unihash-global.c: unihash-mkstatic$(EXEEXT) crc_mktab_SOURCES = \ crc-mktab.c \ mdwopt.c quis.c pquis.c report.c str.c +crc_mktab_CFLAGS = $(AM_CFLAGS) unihash_mkstatic_SOURCES = \ unihash-mkstatic.c \ mdwopt.c quis.c pquis.c report.c str.c unihash.c +unihash_mkstatic_CFLAGS = $(AM_CFLAGS) ## --- Test code --- @@ -215,11 +217,8 @@ TEST_DIST = \ ## I must (a) build the standalone version, and (b) inform the client library ## where the standalone version is. -bres$(EXEEXT): bres-stnd.o - $(LINK) -o bres bres-stnd.o $(LIBS) - -bres-stnd.o: $(srcdir)/bres.c - $(COMPILE) -c -DBRES_STANDALONE -o bres-stnd.o $(srcdir)/bres.c +bres_SOURCES = bres.c +bres_CFLAGS = -DBRES_STANDALONE bres.lo: $(srcdir)/bres.c $(LTCOMPILE) -c -DBRES_SERVER="\"$(libexecdir)/$(PACKAGE)/`echo bres|sed '$(transform)'`\"" $(srcdir)/bres.c diff --git a/unihash-check.pl b/unihash-check.pl index 72c3b9b..f7041f8 100644 --- a/unihash-check.pl +++ b/unihash-check.pl @@ -8,7 +8,7 @@ sub gfmul { while ($y) { if ($y & 1) { $a ^= $x }; - if ($x & 0x80000000) { $x <<= 1; $x ^= $MOD; } + if ($x & 0x80000000) { $x <<= 1; $x &= 0xffffffff; $x ^= $MOD; } else { $x <<= 1; } $y >>= 1; } -- [mdw]