Original bug ID: 5552 Reporter:@mmottl Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2012-03-27T14:32:58Z) Resolution: fixed Priority: normal Severity: minor Platform: Mac OS: Mac OS X OS Version: 10.7.3 Version: 3.12.1 Fixed in version: 4.00.0+dev Category: ~DO NOT USE (was: OCaml general)
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:
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)