Subject: CVS commit: pkgsrc/lang
From: Taylor R Campbell
Date: 2023-06-03 15:22:05
Message id: 20230603132205.46B0BFA88@cvs.NetBSD.org

Log Message:
lang/gcc*: Set CC_FOR_BUILD and CXX_FOR_BUILD if cross-compiling.

Verified gcc6 and gcc7 cross-compile on NetBSD, at least if the
gcc-fortran option is disabled.  gcc8 and gcc9 have trouble because
of python (why do these have a full dependency on python?); gcc10 and
gcc12 are missing gcc/config/mips/netbsd64.h; gcc12 and gcc13 have a
cross-compile bug with missing __LIBGCC_*__ macros -- but in any
case, setting CC_FOR_BUILD and CXX_FOR_BUILD is obviously necessary
for cross-compilation.  Conditional on USE_CROSS_COMPILE, so no harm
to native builds.

Files:
RevisionActionfile
1.22modifypkgsrc/lang/gcc10/Makefile
1.6modifypkgsrc/lang/gcc12/Makefile
1.2modifypkgsrc/lang/gcc13/Makefile
1.38modifypkgsrc/lang/gcc6/Makefile
1.46modifypkgsrc/lang/gcc7/Makefile
1.36modifypkgsrc/lang/gcc8/Makefile
1.43modifypkgsrc/lang/gcc9/Makefile