cross/crossdirect: tweak package() variables
* make arches and compilers diff friendly * order arches alphabetically * rename _bin to _bin_compilers in preparation for _bin_archivers Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6763
This commit is contained in:
parent
0bb036f300
commit
7e4ddbdc55
1 changed files with 17 additions and 3 deletions
|
|
@ -48,8 +48,22 @@ build() {
|
|||
|
||||
package() {
|
||||
# Architectures and binaries
|
||||
_archs="x86_64 armhf armv7 aarch64 riscv64"
|
||||
_bins="c++ cc cpp g++ gcc clang clang++"
|
||||
_archs="
|
||||
aarch64
|
||||
armhf
|
||||
armv7
|
||||
riscv64
|
||||
x86_64
|
||||
"
|
||||
_bin_compilers="
|
||||
c++
|
||||
cc
|
||||
clang
|
||||
clang++
|
||||
cpp
|
||||
g++
|
||||
gcc
|
||||
"
|
||||
|
||||
# Rust wrappers
|
||||
install -Dm755 "$srcdir/rust-qemu-linker.sh" \
|
||||
|
|
@ -70,7 +84,7 @@ package() {
|
|||
cp "$srcdir/crossdirect-$_arch" "./"
|
||||
|
||||
# GCC: create compiler symlinks
|
||||
for _bin in $_bins; do
|
||||
for _bin in $_bin_compilers; do
|
||||
ln -s "crossdirect-$_arch" "$_bin"
|
||||
ln -s "crossdirect-$_arch" "$_hostspec-$_bin"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue