Closed Bug 779333 Opened 11 years ago Closed 11 years ago
libffi/configure should detect CC the same way as the top-level configure script
Without setting CC/CXX in your mozconfig, libffi/configure defaults to gcc instead of clang on OSX. This would mix gcc and clang in the compilation phase (which is kind of bad) and could also result in a possible configure failure (depending on your CFLAGS).
I was standing over philikon's shoulder when we found this. An easy way to trigger this is to adjust your CFLAGS/CXXFLAGS to contain -fcolor-diagnostics or a similar flag not provided by /usr/bin/g++-4.2. configure in the top-level and js directories works fine. libffi fails out with a "C compiler cannot create executables" because libffi is set to error on warnings and the unknown -fcolor-diagnostics argument triggers a warning.
Is this the same as 748138?
(In reply to Rafael Ávila de Espíndola (:espindola) from comment #2) > Is this the same as 748138? Sure looks like it.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.