From eb8034e0677da4a199a0a56286ae8fe6b6ddda20 Mon Sep 17 00:00:00 2001 From: Baoquan He Date: Wed, 15 Apr 2015 17:57:21 +0800 Subject: [PATCH] add fPIC to makefumpfile CFLAGS to support hardening Beginning from f23 program hardening become the defaults for all packages. Details can be checked from below link: https://fedoraproject.org/wiki/Changes/Harden_All_Packages Adding this to makedumpfile CFLAGS, otherwise makedumpfile building will fail on koji. Signed-off-by: Baoquan He --- kexec-tools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec-tools.spec b/kexec-tools.spec index b308c99..3222add 100644 --- a/kexec-tools.spec +++ b/kexec-tools.spec @@ -128,7 +128,7 @@ cp %{SOURCE21} . make %ifarch %{ix86} x86_64 ppc64 s390x ppc64le make -C eppic/libeppic -make -C makedumpfile-1.5.7 LINKTYPE=dynamic USELZO=on USESNAPPY=on +make -C makedumpfile-1.5.7 LINKTYPE=dynamic USELZO=on USESNAPPY=on LDFLAGS="-fPIC" make -C makedumpfile-1.5.7 LDFLAGS="-I../eppic/libeppic -L../eppic/libeppic" eppic_makedumpfile.so %endif make -C kdump-anaconda-addon/po