OSX build failure on master in ucpp

Christian Lohmaier lohmaier+libreoffice at googlemail.com
Wed Aug 21 05:28:34 PDT 2013


Hi Tor, *,

On Wed, Aug 21, 2013 at 11:12 AM, Tor Lillqvist <tml at iki.fi> wrote:
> Probably not a good idea to pass a CC environment variable but not a CXX
> one.

Passing CC or CXX is a bad idea on MacOSX anyway, as configure does
add necessary compiler flags only when CC or CXX is not set. If you
just set the compiler, then those will be missing.

Even just configuring ccache using this method will break stuff (LO's
autogen/configure has its own method of enabling ccache, but still
this probably is a surprise for many).

Apparently this was done because makefiles for external projects were
badly written and did not make use of the appropirate CDEFS that were
already defined in the LO build system. Putting it into the CC/CXX
made those project happy without having to fix the makefiles (be it
the project's own makefiles or the LO ones)

So as Tor wrote:
" one should not pass CC and CXX at all unless one knows *exactly*
what one is doing."

ciao
Christian


More information about the LibreOffice mailing list