ports: Update some ports to new syntax
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
12
ports/tcc/patches/0005-dont-include-ucontext.patch
Normal file
12
ports/tcc/patches/0005-dont-include-ucontext.patch
Normal 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
|
||||
Reference in New Issue
Block a user