@@ -391,10 +391,10 @@ bootstrap_profile() {
391
391
profile=" prefix/darwin/macos/10.$(( rev - 4 )) /x64"
392
392
;;
393
393
* 64-apple-darwin2[0123456789])
394
- # Big Sur is 11.0
395
- # Monterey is 12.0
396
- # Ventura is 13.0
397
- # Sanoma is 14.0
394
+ # Big Sur is 11.0 darwin20
395
+ # Monterey is 12.0 darwin21
396
+ # Ventura is 13.0 darwin22
397
+ # Sanoma is 14.0 darwin23
398
398
rev=${CHOST##* darwin}
399
399
case ${CHOST%% -* } in
400
400
x86_64) arch=x64 ;;
@@ -1483,11 +1483,9 @@ bootstrap_stage1() {
1483
1483
configure_toolchain
1484
1484
export CC CXX
1485
1485
1486
- # GCC 14 cannot be compiled by versions of Clang at least on
1487
- # Darwin17, so go the safe route and get GCC-5 which is sufficient
1488
- # and the last one we can compile without C11. This also compiles
1489
- # on Darwin 8 and 9.
1490
- # see also configure_toolchain
1486
+ # default: empty = NO
1487
+ local USEGCC5=
1488
+
1491
1489
if [[ ${CHOST} == * -darwin* ]] ; then
1492
1490
# setup MacOSX.sdk symlink for GCC, this should probably be
1493
1491
# managed using an eselect module in the future
@@ -1525,11 +1523,25 @@ bootstrap_stage1() {
1525
1523
( cd " ${ROOT} " && ln -s " ${SDKPATH} " MacOSX.sdk )
1526
1524
einfo " using system sources from ${SDKPATH} "
1527
1525
1526
+ # GCC 14 cannot be compiled by versions of Clang at least on
1527
+ # Darwin17, so go the safe route and get GCC-5 which is sufficient
1528
+ # and the last one we can compile without C11. This also compiles
1529
+ # on Darwin 8 and 9.
1530
+ # see also configure_toolchain
1531
+ case ${CHOST} in
1532
+ * -darwin[89]) USEGCC5=yes ;;
1533
+ * 86* -darwin* ) USEGCC5=yes ;;
1534
+ # arm64/M1 isn't supported by old GCC-5!
1535
+ esac
1536
+ fi
1537
+
1538
+ if [[ -n ${USEGCC5} ]] ; then
1528
1539
# benefit from 4.2 if it's present
1529
1540
if [[ -e /usr/bin/gcc-4.2 ]] ; then
1530
1541
export CC=gcc-4.2
1531
1542
export CXX=g++-4.2
1532
1543
fi
1544
+
1533
1545
[[ -e ${ROOT} /tmp/usr/include/gmp.h ]] \
1534
1546
|| (bootstrap_gmp) || return 1
1535
1547
[[ -e ${ROOT} /tmp/usr/include/mpfr.h ]] \
0 commit comments