Source: srtp Version: 1.4.5~20130609~dfsg-1.3 Severity: important Tags: patch
With gcc in stretch defaulting to PIE, hardening=+all,-pie changed semantics from "enable hardening but not PIE" to "enable all hardening and explicitely disable the default PIE". The latter is usually not intended. For packages like srtp that include static libraries the situation is even worse, since non-PIE static libraries cannot be used with the stretch gcc unless -no-pie is explicitly passed when linking. The -pie in hardening flags was in some cases required in pre-stretch releases to avoid build failures caused by (incorrectly) passing -fPIE to the compiler when building shared libraries or plugins. This problem does no longer exist. Please apply the following patch: --- debian/rules.old 2017-04-03 14:49:11.000000000 +0000 +++ debian/rules 2017-04-03 14:55:20.000000000 +0000 @@ -23,8 +23,6 @@ include /usr/share/cdbs/1/rules/upstream-tarball.mk # Tighten security - more info at http://wiki.debian.org/Hardening -# ...except this, causing "relocation [...]; recompile with -fPIC" failure -export DEB_BUILD_MAINT_OPTIONS=hardening=-pie DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk

