From 19a94052cd57ad94bf4672fb7e3e5e0313432c56 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 9 Apr 2018 10:28:41 -0400 Subject: [PATCH] Use Fedora build flags (bz 1548679) Signed-off-by: Steve Dickson --- nfs-utils.spec | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/nfs-utils.spec b/nfs-utils.spec index ebe2b28..c1b8088 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -105,23 +105,11 @@ find . -name "*.orig" | xargs rm -f find -name \*.py -exec sed -r -i '1s|^#!\s*/usr/bin.*python.*|#!%{__python3}|' {} \; %build - -%ifarch s390 s390x sparcv9 sparc64 -PIE="-fPIE" -%else -PIE="-fpie" -%endif -export PIE - sh -x autogen.sh - -CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE -D_FILE_OFFSET_BITS=64`" - %define _statdpath /var/lib/nfs/statd %configure \ - CFLAGS="$CFLAGS" \ - CPPFLAGS="$DEFINES" \ - LDFLAGS="-pie" \ + CFLAGS="%{build_cflags} -D_FILE_OFFSET_BITS=64" \ + LDFLAGS="%{build_ldflags}" \ --enable-mountconfig \ --enable-ipv6 \ --with-statdpath=%{_statdpath} \ @@ -321,8 +309,9 @@ fi %{_libdir}/libnfsidmap.so %changelog -* Fri Apr 6 2018 Steve Dickson 2.3.1-6.rc1 +* Mon Apr 9 2018 Steve Dickson 2.3.1-6.rc1 - Stop failing when systemctl try-restart gssproxy fails (bz 1552976) +- Use Fedora build flags (bz 1548679) * Fri Mar 2 2018 Steve Dickson 2.3.1-5.rc1 - Updated to latest upstream RC release: nfs-utils-2-3-2-rc1