[finger/f19] Clean up finger compilation flags
Tomas Hozza
thozza at fedoraproject.org
Mon Jul 22 14:08:57 UTC 2013
commit ddf5feac887199ede06dfc07c44d936a0657c5c5
Author: Tomas Hozza <thozza at redhat.com>
Date: Mon Jul 22 16:00:27 2013 +0200
Clean up finger compilation flags
- Compile finger with Full RELRO
- Explicitly use gcc
- Use only RPM_OPT_FLAGS and RPM_LD_FLAGS
Signed-off-by: Tomas Hozza <thozza at redhat.com>
finger.spec | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/finger.spec b/finger.spec
index bec57ad..510b14d 100644
--- a/finger.spec
+++ b/finger.spec
@@ -1,7 +1,9 @@
+%global _hardened_build 1
+
Summary: The finger client
Name: finger
Version: 0.17
-Release: 48%{?dist}
+Release: 49%{?dist}
License: BSD
Group: Applications/Internet
@@ -82,12 +84,12 @@ install -m 644 %{SOURCE3} COPYING
%build
sh configure --enable-ipv6
perl -pi -e '
- s,^CC=.*$,CC=cc,;
- s,-O2,-fPIC \$(RPM_OPT_FLAGS),;
+ s,^CC=.*$,CC=gcc,;
+ s,^CFLAGS=.*,CFLAGS=\$(RPM_OPT_FLAGS),;
s,^BINDIR=.*$,BINDIR=%{_bindir},;
s,^MANDIR=.*$,MANDIR=%{_mandir},;
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
- s,^LDFLAGS=.*$,LDFLAGS=-pie,;
+ s,^LDFLAGS=.*$,LDFLAGS=\$(RPM_LD_FLAGS),;
' MCONFIG
make %{?_smp_mflags}
@@ -133,6 +135,11 @@ make INSTALLROOT=%{buildroot} install
%changelog
+* Mon Jul 22 2013 Tomas Hozza <thozza at redhat.com> - 0.17-49
+- Compile finger with Full RELRO
+- Explicitly use gcc
+- Use only RPM_OPT_FLAGS and RPM_LD_FLAGS
+
* Mon Feb 11 2013 Tomas Hozza <thozza at redhat.com> - 0.17-48
- Fixing errors found by static analysis of code (Coverity) (#909325)
More information about the scm-commits
mailing list