Opened 15 years ago

Closed 15 years ago

#21845 closed defect (wontfix)

clang should be invoked as 'clang -std=gnu89'

Reported by: paul.vernaza@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.8.1
Keywords: clang compiler Cc:
Port:

Description

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.

Change History (1)

comment:1 Changed 15 years ago by tobypeterson

Resolution: wontfix
Status: newclosed

No, sticking with the default behavior makes more sense. Ports that don't compile should be fixed.

Note: See TracTickets for help on using tickets.