#21845: clang should be invoked as 'clang -std=gnu89' ------------------------------------+--------------------------------------- Reporter: paul.vernaza@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.8.1 Keywords: clang compiler | Port: ------------------------------------+--------------------------------------- It appears that when one sets 'configure.compiler=clang', the compiler is invoked as 'clang', whereas it should probably be invoked as 'clang -std=gnu89' in order to maximize compatibility with GCC. Otherwise, clang compiles in C99 mode, which is subtly different than the C89 mode to which GCC defaults. I have observed this to cause compilation failures with certain packages when using 'configure.compiler=clang'. Off the top of my head, teTeX is one, though I don't currently have logs available. They can be provided if necessary. -- Ticket URL: <http://trac.macports.org/ticket/21845> MacPorts <http://www.macports.org/> Ports system for Mac OS