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
This commit is contained in:
Marcus Meissner 2015-01-02 08:49:36 +00:00 committed by Git OBS Bridge
parent 82b4700cc8
commit b85a1eb8ca
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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"