As we discussed in the last meeting, we reset the ports tree and began from scratch, even though this change involves porting all the packages. Starting small and growing gradually, this approach will reduce build times and consequently lower energy consumption in a world affected by climate change. We will add new ports as users needs arise; ok h3artbl33d@

This commit is contained in:
purplerain 2024-05-26 03:08:12 +00:00
parent 83a0aaf92c
commit 9a3af55370
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
59377 changed files with 98673 additions and 4712155 deletions

View file

@ -0,0 +1,77 @@
Index: build/make/configure.sh
--- build/make/configure.sh.orig
+++ build/make/configure.sh
@@ -701,8 +701,8 @@ post_process_cmdline() {
}
setup_gnu_toolchain() {
- CC=${CC:-${CROSS}gcc}
- CXX=${CXX:-${CROSS}g++}
+ CC=${CC:-${CROSS}cc}
+ CXX=${CXX:-${CROSS}c++}
AR=${AR:-${CROSS}ar}
LD=${LD:-${CROSS}${link_with_cc:-ld}}
AS=${AS:-${CROSS}as}
@@ -746,7 +746,7 @@ check_xcode_minimum_version() {
process_common_toolchain() {
if [ -z "$toolchain" ]; then
- gcctarget="${CHOST:-$(gcc -dumpmachine 2> /dev/null)}"
+ gcctarget="${CHOST:-$(${CC} -dumpmachine 2> /dev/null)}"
# detect tgt_isa
case "$gcctarget" in
aarch64*)
@@ -1012,7 +1012,7 @@ EOF
case ${tgt_cc} in
gcc)
- link_with_cc=gcc
+ link_with_cc=${CC}
setup_gnu_toolchain
arch_int=${tgt_isa##armv}
arch_int=${arch_int%%te}
@@ -1230,7 +1230,7 @@ EOF
esac
;;
mips*)
- link_with_cc=gcc
+ link_with_cc=${CC}
setup_gnu_toolchain
tune_cflags="-mtune="
if enabled dspr2; then
@@ -1281,7 +1281,7 @@ EOF
check_add_asflags -KPIC
;;
ppc64le*)
- link_with_cc=gcc
+ link_with_cc=${CC}
setup_gnu_toolchain
# Do not enable vsx by default.
# https://bugs.chromium.org/p/webm/issues/detail?id=1522
@@ -1338,7 +1338,7 @@ EOF
esac
;;
gcc*)
- link_with_cc=gcc
+ link_with_cc=${CC}
tune_cflags="-march="
setup_gnu_toolchain
#for 32 bit x86 builds, -O3 did not turn on this flag
@@ -1469,7 +1469,7 @@ EOF
esac
;;
loongarch*)
- link_with_cc=gcc
+ link_with_cc=${CC}
setup_gnu_toolchain
enabled lsx && check_inline_asm lsx '"vadd.b $vr0, $vr1, $vr1"'
@@ -1478,7 +1478,7 @@ EOF
enabled lasx && soft_enable runtime_cpu_detect
;;
*-gcc|generic-gnu)
- link_with_cc=gcc
+ link_with_cc=${CC}
enable_feature gcc
setup_gnu_toolchain
;;