Original bug ID: 5552
On Mac OS X I get the following error when compiling C-files with OCaml:
gcc: unrecognized option '-no-cpp-precomp'
This flag is passed implicitly to gcc by the OCaml compiler. The configure script in the OCaml distribution apparently decides to always pass this flag on any "Darwin" platform, because it is required by Apple's version of gcc.
However, sometimes developers may use a different version of gcc than shipped by Apple (e.g. from MacPorts, etc.). Could you please refine the compiler configuration so that this flag is only passed when really needed? Thanks!
The text was updated successfully, but these errors were encountered:
Comment author: @damiendoligez
A bit of investigation reveals that this flag stopped being useful at some point before 2008 (probably in 2005). In the current version of Apple's gcc, it is not even documented anymore, but still silently ignored.
I have patched "configure" to remove this flag.
Fixed in 4.00 (commit 12282) and trunk (commit 12283)