ports: Update some ports to new syntax

This commit is contained in:
2025-06-28 20:47:12 +03:00
parent 505388b9fa
commit c94243e107
9 changed files with 23 additions and 30 deletions

View File

@@ -9,6 +9,9 @@ if [ $tcc_arch = 'i686' ]; then
tcc_arch='i386'
fi
MAKE_BUILD_TARGETS=("cross-$tcc_arch $tcc_arch-libtcc1-usegcc=yes")
MAKE_INSTALL_TARGETS=("install-unx")
configure() {
./configure \
--prefix=/usr \
@@ -22,12 +25,6 @@ configure() {
--elfinterp=/usr/lib/DynamicLoader.so
}
build() {
touch $BANAN_SYSROOT/usr/include/sys/ucontext.h
make -j$(nproc) cross-$tcc_arch $tcc_arch-libtcc1-usegcc=yes || exit 1
}
install() {
make install-unx DESTDIR=$BANAN_SYSROOT || exit 1
post_install() {
ln -sf $tcc_arch-tcc $BANAN_SYSROOT/usr/bin/tcc
}

View File

@@ -0,0 +1,12 @@
diff -ruN tcc-0.9.27/tccrun.c tcc-0.9.27-banan_os/tccrun.c
--- tcc-0.9.27/tccrun.c 2017-12-17 10:27:05.000000000 +0200
+++ tcc-0.9.27-banan_os/tccrun.c 2025-06-28 20:30:00.914206003 +0300
@@ -30,7 +30,7 @@
#ifdef CONFIG_TCC_BACKTRACE
# ifndef _WIN32
# include <signal.h>
-# ifndef __OpenBSD__
+# if !defined(__OpenBSD__) && !defined(__banan_os__)
# include <sys/ucontext.h>
# endif
# else