Prefer user CFLAGS/CPPFLAGS over those provided by rpmbuild in the spec file.

https://fedorahosted.org/freeipa/ticket/3896
This commit is contained in:
Jan Cholasta
2013-12-04 18:37:18 +01:00
committed by Petr Viktorin
parent a9a7976ca8
commit f618e35a1a

View File

@@ -320,8 +320,8 @@ This package contains tests that verify IPA functionality.
%setup -n freeipa-%{version} -q
%build
export CFLAGS="$CFLAGS %{optflags}"
export CPPFLAGS="$CPPFLAGS %{optflags}"
export CFLAGS="%{optflags} $CFLAGS"
export CPPFLAGS="%{optflags} $CPPFLAGS"
%if 0%{?fedora} >= 19
export SUPPORTED_PLATFORM=fedora19
%else