[packages/krb5-appl] - use getconf to define LFS flags

qboosh qboosh at pld-linux.org
Sun Feb 19 11:49:36 CET 2017


commit be2bd6f69f562950b33533855f8ae54ecacf0449
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 19 11:51:25 2017 +0100

    - use getconf to define LFS flags

 krb5-appl.spec | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/krb5-appl.spec b/krb5-appl.spec
index 1cde22d..b9085fe 100644
--- a/krb5-appl.spec
+++ b/krb5-appl.spec
@@ -269,14 +269,10 @@ mv %{name}-%{version}/* .
 %patch17 -p1
 
 %build
-# Get LFS support on systems that need it which aren't already 64-bit.
-%ifarch %{ix86} s390 ppc sparc
-CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -I%{_includedir}/ncurses"
-CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I%{_includedir}/ncurses"
-%else
-CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
-CPPFLAGS="-I%{_includedir}/ncurses"
-%endif
+# Get LFS support on systems that need additional flags.
+LFS_CFLAGS="$(getconf LFS_CFLAGS)"
+CFLAGS="%{rpmcflags} $LFS_CFLAGS -I%{_includedir}/ncurses"
+CPPFLAGS="$LFS_CFLAGS -I%{_includedir}/ncurses"
 
 %{__autoconf}
 %{__autoheader}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/krb5-appl.git/commitdiff/be2bd6f69f562950b33533855f8ae54ecacf0449



More information about the pld-cvs-commit mailing list