From 4741d0043a469f16b96d2debfc3643f5aed8ebfb0001604e652e4555bbb57170 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 19 Dec 2014 10:06:36 +0000 Subject: [PATCH] - build with PIE OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=37 --- gzip.changes | 5 +++++ gzip.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gzip.changes b/gzip.changes index d35fb2e..d9378f9 100644 --- a/gzip.changes +++ b/gzip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 19 10:05:17 UTC 2014 - meissner@suse.com + +- build with PIE + ------------------------------------------------------------------- Mon May 12 15:44:03 UTC 2014 - vdziewiecki@suse.com diff --git a/gzip.spec b/gzip.spec index 260d450..f3a497c 100644 --- a/gzip.spec +++ b/gzip.spec @@ -57,8 +57,9 @@ times. %patch7 -p1 %build -CFLAGS="%{optflags} -fomit-frame-pointer \ --W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith" +export CFLAGS="%{optflags} -fomit-frame-pointer \ +-W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith -fPIE" +export LDFLAGS="-pie" %configure --disable-silent-rules \ gl_cv_func_printf_directive_n=yes \ gl_cv_func_printf_infinite_long_double=yes