[packages/chrony] - move PIE directly to CFLAGS, specflags are used only for optimized builds; gcc version for PIE
qboosh
qboosh at pld-linux.org
Thu Oct 29 17:25:52 CET 2026
commit de275971c4244c091507b3cba367873718f0c1a4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Oct 29 17:26:41 2026 +0100
- move PIE directly to CFLAGS, specflags are used only for optimized builds; gcc version for PIE
chrony.spec | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/chrony.spec b/chrony.spec
index 1f34c3b..3ec640f 100644
--- a/chrony.spec
+++ b/chrony.spec
@@ -19,6 +19,7 @@ Patch1: conf.d.patch
URL: https://chrony-project.org/
BuildRequires: asciidoc
BuildRequires: bison
+BuildRequires: gcc >= 5:3.4
BuildRequires: gnutls-devel
BuildRequires: libcap-devel
BuildRequires: libedit-devel
@@ -44,8 +45,6 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/ntp
-%define specflags -pie -fpie
-
%description
A client/server for the Network Time Protocol, this program keeps your
computer's clock accurate. It was specially designed to support
@@ -66,7 +65,7 @@ Internetu, obsługuje także komputery na stałym łączu.
%build
# NOTE: It is not autoconf generated configre
CC="%{__cc}" \
-CFLAGS="%{rpmcflags} -Wmissing-prototypes -Wall" \
+CFLAGS="%{rpmcflags} -pie -fpie -Wmissing-prototypes -Wall" \
CPPFLAGS="%{rpmcppflags}" \
LDFLAGS="%{rpmldflags}" \
./configure \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chrony.git/commitdiff/de275971c4244c091507b3cba367873718f0c1a4
More information about the pld-cvs-commit
mailing list