diff --git a/xz.spec b/xz.spec index 17361f1..57168b0 100644 --- a/xz.spec +++ b/xz.spec @@ -106,8 +106,8 @@ Static library for the LZMA library %setup -q %build -%global optflags %{optflags} -D_REENTRANT -pipe -export LDFLAGS="-Wl,-z,relro,-z,now" +%global optflags %{optflags} -D_REENTRANT -pipe -fPIE +export LDFLAGS="-Wl,-z,relro,-z,now -pie" %if %{do_profiling} profiledir=$(mktemp -d) trap "rm -rf $profiledir" EXIT