[MacPorts] #21845: clang should be invoked as 'clang -std=gnu89'
#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
#21845: clang should be invoked as 'clang -std=gnu89' -------------------------------------+-------------------------------------- Reporter: paul.vernaza@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.8.1 Resolution: wontfix | Keywords: clang compiler Port: | -------------------------------------+-------------------------------------- Changes (by toby@…): * status: new => closed * resolution: => wontfix Comment: No, sticking with the default behavior makes more sense. Ports that don't compile should be fixed. -- Ticket URL: <http://trac.macports.org/ticket/21845#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts