]> git.pld-linux.org Git - packages/chrony.git/commitdiff
- no -pie on gcc 3.3.6 (ac), assume gcc 3.4 has it AC-branch auto/ac/chrony-1_26-5
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 17 Jan 2012 11:55:37 +0000 (11:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chrony.spec -> 1.11

chrony.spec

index 4cf652bd2cd6d43a6c8a3cb547b50adbec7a8b2f..12b3aa1711317581d0e2b1950653ebdd8ac1998d 100644 (file)
@@ -16,7 +16,7 @@ Source6:      %{name}d.upstart
 BuildRequires: bison
 BuildRequires: libcap-devel
 BuildRequires: readline-devel
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.453
 BuildRequires: texinfo
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
@@ -32,6 +32,11 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/ntp
 
+# assume gcc 3.4 has it
+%if "%{cc_version}" >= "3.4"
+%define                specflags       -pie -fpie
+%endif
+
 %description
 A client/server for the Network Time Protocol, this program keeps your
 computer's clock accurate. It was specially designed to support
@@ -46,7 +51,7 @@ in permanently connected environments.
 %build
 # NOTE: It is not autoconf generated configre
 CC="%{__cc}" \
-CFLAGS="%{rpmcflags} -pie -fpie -Wmissing-prototypes -Wall" \
+CFLAGS="%{rpmcflags} -Wmissing-prototypes -Wall" \
 CPPFLAGS="%{rpmcppflags}" \
 ./configure \
        --prefix=%{_prefix} \
This page took 0.14375 seconds and 4 git commands to generate.