pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

New flag? GCC_ONLY



In mk.conf we can set HAVE_PCC=yes to use pcc as the default C compiler,
but this isn't very useful for pkgsrc because some software relies on
GCC-specific functionality. Would it make sense to introduce a new flag
for pkgsrc Makefiles to indicate that gcc must be used?

GCC_ONLY=yes

This would allow C99 code to build faster using pcc, while switching to
gcc for anything with GNUC extensions. A more general approach might be
to indicate what capabilities are required of the C-like compiler

LANG=C99
LANG=GNUC
LANG=ObjC
LANG=C++98
LANG=C++11


Eric Radman  |  http://eradman.com


Home | Main Index | Thread Index | Old Index