SPECS: cmake.spec - even more :/

Arkadiusz Miskiewicz arekm at maven.pl
Tue Aug 5 17:40:30 CEST 2008


On Tuesday 05 August 2008, Kacper Kornet wrote:
> On Thu, Jul 31, 2008 at 05:35:39PM +0200, Jakub Bogusz wrote:
> > On Thu, Jul 31, 2008 at 09:54:25AM +0300, Elan Ruusamäe wrote:
> > > On Thursday 31 July 2008 07:45, qboosh wrote:
> > > > +# - rpmldflags/rpmcppflags are not passed through %%cmake macro at
> > > > all +#   (is there any standard way???)
> > >
> > > there isn't (this has gone over devel-en list already at least twice).
> >
> > Well, as I rechecked, at least cmake 2.6.0 respects LDFLAGS.
> > But it's all - no CPPFLAGS.
> >
> > And use of any of predefined CMAKE_BUILD_TYPEs overrides
> > CFLAGS/CXXFLAGS (-Os/-O2/-O3 is added _after_ flags taken from
> > environment).
>
> Can you check with the following definition of %cmake:
>
> %cmake { \
> CC="%{__cc}" \
> CXX="%{__cxx}" \
> %{__cmake} \
>     -DCMAKE_BUILD_TYPE="Release" \
>     -DCMAKE_C_FLAGS:STRING="%{rpmcflags}" \
>     -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{rpmcxxflags}" \
>     -DCMAKE_EXE_LINKER_FLAGS_RELEASE:STRING="%{rpmldflags}" \
>     -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
> }

CPPFLAGS is missing

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/


More information about the pld-devel-en mailing list