From b85a1eb8ca0cde2b78dcc3d9b0cc8c03c4fe4f826ea5a63fea2378cd586816fc Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 2 Jan 2015 08:49:36 +0000 Subject: [PATCH] Accepting request 266991 from home:msmeissn:branches:security - build with PIE OBS-URL: https://build.opensuse.org/request/show/266991 OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=109 --- clamav.changes | 5 +++++ clamav.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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"