diff --git a/clamav.changes b/clamav.changes index afc67b5..57550f2 100644 --- a/clamav.changes +++ b/clamav.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 1 21:34:01 UTC 2015 - meissner@suse.com + +- build with PIE + ------------------------------------------------------------------- Wed Nov 19 14:54:58 UTC 2014 - max@suse.com diff --git a/clamav.spec b/clamav.spec index 2d259e8..e89f0a1 100644 --- a/clamav.spec +++ b/clamav.spec @@ -1,7 +1,7 @@ # # spec file for package clamav # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -96,8 +96,9 @@ and multiple signature languages for detecting threats. CFLAGS="-fstack-protector" CXXFLAGS="-fstack-protector" %endif -export CFLAGS="%optflags $CFLAGS" -export CXXFLAGS="%optflags $CXXFLAGS" +export CFLAGS="%optflags $CFLAGS -fPIE" +export CXXFLAGS="%optflags $CXXFLAGS -fPIE" +export LDFLAGS="-pie" %if 0%{?suse_version} == 0910 # SLES9 needs this macro to enable the quarantine feature in libmilter CFLAGS="$CFLAGS -D_FFR_QUARANTINE -D_FFR_SMFI_OPENSOCKET"