mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Ports: Add a TinyCC port
It does build, but doesn't quite work yet.
This commit is contained in:
parent
89bf38864a
commit
ad51a70c54
3 changed files with 36 additions and 0 deletions
14
Ports/tinycc/package.sh
Executable file
14
Ports/tinycc/package.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash ../.port_include.sh
|
||||||
|
port=tinycc
|
||||||
|
workdir=tinycc-dev
|
||||||
|
version=dev
|
||||||
|
curlopts="-L"
|
||||||
|
files="https://github.com/TinyCC/tinycc/archive/dev.tar.gz tinycc-dev.tar.gz"
|
||||||
|
useconfigure=true
|
||||||
|
makeopts=tcc
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
run ./configure --cross-prefix=i686-pc-serenity- --cpu=i686 --triplet=i686-pc-serenity --crtprefix=/usr/lib
|
||||||
|
}
|
||||||
|
|
||||||
|
export CONFIG_ldl=no
|
11
Ports/tinycc/patches/disable-backtrace.patch
Normal file
11
Ports/tinycc/patches/disable-backtrace.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- tinycc-dev/tcc.h 2019-05-14 22:40:39.000000000 +0300
|
||||||
|
+++ tinycc-dev-serenity/tcc.h 2019-10-02 13:37:16.919990212 +0300
|
||||||
|
@@ -162,7 +162,7 @@
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT
|
||||||
|
+#if defined TCC_IS_NATIVE && !defined CONFIG_TCCBOOT && !defined __serenity__
|
||||||
|
# define CONFIG_TCC_BACKTRACE
|
||||||
|
# if (defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64) \
|
||||||
|
&& !defined TCC_UCLIBC && !defined TCC_MUSL
|
11
Ports/tinycc/patches/targetos.patch
Normal file
11
Ports/tinycc/patches/targetos.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- tinycc-dev/configure 2019-05-14 22:40:39.000000000 +0300
|
||||||
|
+++ tinycc-dev-serenity/configure 2019-10-02 13:31:15.464543005 +0300
|
||||||
|
@@ -49,7 +49,7 @@
|
||||||
|
gcc_minor=0
|
||||||
|
|
||||||
|
# OS specific
|
||||||
|
-targetos=`uname`
|
||||||
|
+targetos=Serenity
|
||||||
|
case $targetos in
|
||||||
|
Darwin)
|
||||||
|
confvars="$confvars OSX"
|
Loading…
Add table
Add a link
Reference in a new issue