Fix remaining cross-build portability issues
Some checks failed
build / ARM v8 (push) Has been cancelled
build / ARM v7 (push) Has been cancelled
build / i686 Linux (push) Has been cancelled
build / i686 Win (push) Has been cancelled
build / RISCV 64bit (push) Has been cancelled
build / Cross-Mac x86_64 (push) Has been cancelled
build / x86_64 Linux (push) Has been cancelled
build / x86_64 Freebsd (push) Has been cancelled
build / Win64 (push) Has been cancelled
build / Cross-Mac aarch64 (push) Has been cancelled

This commit is contained in:
t1amak
2026-03-19 12:03:20 +01:00
parent f92e2e0151
commit e86c822ebb
5 changed files with 17 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
freebsd_CC=clang-8
freebsd_CXX=clang++-8
freebsd_CC=clang
freebsd_CXX=clang++
freebsd_AR=ar
freebsd_RANLIB=ranlib
freebsd_NM=nm

View File

@@ -12,8 +12,8 @@ endef
define $(package)_build_cmds
mkdir bin &&\
echo "#!/bin/sh\n\nexec /usr/bin/clang-8 -target x86_64-unknown-freebsd$($(package)_version) --sysroot=$(host_prefix)/native $$$$""@" > bin/clang-8 &&\
echo "#!/bin/sh\n\nexec /usr/bin/clang++-8 -target x86_64-unknown-freebsd$($(package)_version) --sysroot=$(host_prefix)/native $$$$""@" > bin/clang++-8 &&\
echo "#!/bin/sh\n\nexec /usr/bin/clang -target x86_64-unknown-freebsd$($(package)_version) --sysroot=$(host_prefix)/native $$$$""@" > bin/clang &&\
echo "#!/bin/sh\n\nexec /usr/bin/clang++ -target x86_64-unknown-freebsd$($(package)_version) --sysroot=$(host_prefix)/native $$$$""@" > bin/clang++ &&\
chmod 755 bin/*
endef