%configure

Elan Ruusamäe glen at delfi.ee
Sat Mar 17 00:53:01 CET 2007


%configure {./configure \
    LDFLAGS="${LDFLAGS:-%rpmldflags}" \
    CFLAGS="${CFLAGS:-%rpmcflags}" \
    CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \
    FFLAGS="${FFLAGS:-%rpmcflags}" \
    CPPFLAGS="${CPPFLAGS:-}" \
    %{?__cc:CC="%{__cc}"} \
    %{?__cxx:CXX="%{__cxx}"} \
    --host=%{_target_platform} \

why is that  %configure forces CC/CXX/CPP while CFLAGS it allows $CFLAGS to 
override?

this makes it impossible to redefine %__cc in a spec and having effect 
in %configure (other than passing CC=%{__cc} again to %configure (like 
rpm.spec does)).

-- 
glen


More information about the pld-devel-en mailing list