]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav-add-support-for-system-tomsfastmath.patch
- updated to 0.103.0
[packages/clamav.git] / clamav-add-support-for-system-tomsfastmath.patch
index 31a841e02f1325b80e2f250b48f702a3d74252a1..8dca9c160f3d8822ab1801a1bcc60c5f8231adf2 100644 (file)
@@ -33,33 +33,30 @@ index 9ef4105..a286b44 100644
  
  # Yep, downgrading the compiler avoids the bug too:
  # 4.0.x, and 4.1.0 are the known buggy versions
-diff --git a/libclamav/Makefile.am b/libclamav/Makefile.am
-index 43b5154..02596b8 100644
---- a/libclamav/Makefile.am
-+++ b/libclamav/Makefile.am
-@@ -496,8 +496,10 @@ libclamav_la_SOURCES += yara_arena.c \
+--- clamav-0.103.0/libclamav/Makefile.am.orig  2020-09-13 02:27:09.000000000 +0200
++++ clamav-0.103.0/libclamav/Makefile.am       2020-11-23 06:32:13.715611447 +0100
+@@ -588,7 +588,10 @@
        yara_clam.h
  endif
  
 -libclamav_la_SOURCES += bignum.h\
--      bignum_fast.h\
 +libclamav_la_SOURCES += bignum.h
 +
 +if !SYSTEM_TOMSFASTMATH
-+libclamav_la_SOURCES += bignum_fast.h\
-         tomsfastmath/addsub/fp_add.c\
-         tomsfastmath/addsub/fp_add_d.c\
-         tomsfastmath/addsub/fp_addmod.c\
-@@ -579,6 +581,10 @@ libclamav_la_SOURCES += bignum.h\
-         tomsfastmath/sqr/fp_sqr_comba_generic.c\
-         tomsfastmath/sqr/fp_sqr_comba_small_set.c\
++libclamav_la_SOURCES += \
+       bignum_fast.h\
+       tomsfastmath/addsub/fp_add.c\
+       tomsfastmath/addsub/fp_add_d.c\
+@@ -671,6 +674,10 @@
+       tomsfastmath/sqr/fp_sqr_comba_generic.c\
+       tomsfastmath/sqr/fp_sqr_comba_small_set.c\
        tomsfastmath/sqr/fp_sqrmod.c
 +else
 +libclamav_la_CFLAGS += $(TOMSFASTMATH_CFLAGS)
 +libclamav_la_LIBADD += $(TOMSFASTMATH_LIBS)
 +endif
  
- .PHONY: version.h.tmp
+ .PHONY2: version.h.tmp
  version.c: version.h
 diff --git a/libclamav/bignum.h b/libclamav/bignum.h
 index 9acb17b..56967b1 100644
This page took 0.28877 seconds and 4 git commands to generate.