diff --git a/clamav.changes b/clamav.changes index 7e0b3a2..8f54e05 100644 --- a/clamav.changes +++ b/clamav.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Dec 15 16:03:46 UTC 2013 - uweigand@de.ibm.com + +- fix build failures on ppc64le: + * fanotify is only supported on x86 platforms + * building tomsfastmath on (non-x86) 64-bit platforms requires -DFP_64BIT + ------------------------------------------------------------------- Sat Sep 28 07:35:34 UTC 2013 - meissner@suse.com diff --git a/clamav.spec b/clamav.spec index 6f7eefb..57ff551 100644 --- a/clamav.spec +++ b/clamav.spec @@ -96,6 +96,10 @@ export CXXFLAGS="%optflags $CXXFLAGS" # SLES9 needs this macro to enable the quarantine feature in libmilter CFLAGS="$CFLAGS -D_FFR_QUARANTINE -D_FFR_SMFI_OPENSOCKET" %endif +%ifarch ppc64 ppc64le +# tomsfastmath needs this for correct operation on 64-bit platforms +CFLAGS="$CFLAGS -DFP_64BIT" +%endif ./configure \ --prefix=%_prefix \ --libdir=%_libdir \ @@ -109,6 +113,9 @@ CFLAGS="$CFLAGS -D_FFR_QUARANTINE -D_FFR_SMFI_OPENSOCKET" --enable-milter \ %clamav_check \ %llvm \ +%ifnarch %ix86 x86_64 + --disable-fanotify \ +%endif --disable-zlib-vcheck \ --enable-clamdtop \ --disable-timestamps