[Dovecot] beta5 builds under RHEL
Brandon Davidson
brandond at uoregon.edu
Mon May 31 06:02:03 EEST 2010
On 5/30/10 2:49 PM, "Axel Thimm" <Axel.Thimm at ATrpms.net> wrote:
>
> How are your %optflags (which is the same as $RPM_OPT_FLAGS) merged
> into the build if it is not passed to make? And it would yield the
> same CFLAGS as above (merged default optflags with what configure adds
> to it).
They're exported by the %configure macro, and configure writes the combined
CFLAGS, CXXFLAGS, and FFLAGS into the Makefile... so it's not necessary (and
possibly detrimental) to both export them before configuring and pass them
explicitly to make, as the command-line CLFAGS option overrides the Makefile
CFLAGS declaration that includes -std=gnu99.
My point is, if I don't inclue CFLAGS="..." in my call to make in the spec
file, it builds fine, and *does* include all the necessary optflags. Give it
a try.
-Brad
More information about the dovecot
mailing list