packages: chrony/chrony.spec - no -pie on gcc 3.3.6 (ac), assume gcc 3.4 ha...

glen glen at pld-linux.org
Tue Jan 17 12:55:42 CET 2012


Author: glen                         Date: Tue Jan 17 11:55:42 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- no -pie on gcc 3.3.6 (ac), assume gcc 3.4 has it

---- Files affected:
packages/chrony:
   chrony.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/chrony/chrony.spec
diff -u packages/chrony/chrony.spec:1.10 packages/chrony/chrony.spec:1.11
--- packages/chrony/chrony.spec:1.10	Tue Jan 17 12:51:24 2012
+++ packages/chrony/chrony.spec	Tue Jan 17 12:55:37 2012
@@ -17,7 +17,7 @@
 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
@@ -33,6 +33,11 @@
 
 %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
@@ -47,7 +52,7 @@
 %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} \
@@ -131,6 +136,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2012/01/17 11:55:37  glen
+- no -pie on gcc 3.3.6 (ac), assume gcc 3.4 has it
+
 Revision 1.10  2012/01/17 11:51:24  glen
 - --with-readline is not valid opt
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/chrony/chrony.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list