diff --git a/tiff.changes b/tiff.changes index fbc3d1b..5dbc71c 100644 --- a/tiff.changes +++ b/tiff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 22 19:58:43 UTC 2014 - meissner@suse.com + +- build with PIE + ------------------------------------------------------------------- Wed Aug 21 12:57:57 UTC 2013 - pgajdos@suse.com diff --git a/tiff.spec b/tiff.spec index fba8293..ba46a96 100644 --- a/tiff.spec +++ b/tiff.spec @@ -1,7 +1,7 @@ # # spec file for package tiff # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 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 @@ -117,8 +117,9 @@ the libtiff library. %patch11 %build +CFLAGS="$RPM_OPT_FLAGS -fPIE" %configure --disable-static --with-pic -make %{?_smp_mflags} +make %{?_smp_mflags} LDFLAGS="-pie" %install mkdir -p %{buildroot}/{%{_mandir}/{man1,man3},usr/{bin,lib,include}}