Compare commits

..
Author SHA1 Message Date
sisungo 6dd8c911a1 feat: update libgcc-compat to 0.2.0
Signed-off-by: sisungo <[email protected]>
2026-07-10 16:30:31 +08:00
3 changed files with 4 additions and 51 deletions
-36
View File
@@ -1,36 +0,0 @@
from lib import cpp
from lib.make import *
version("3.7.91")
source_url("https://alpha.gnu.org/gnu/bison/bison-3.7.91.tar.xz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("gnu-m4")
block_hook("autolink")
def build():
cpp.configure(["--enable-relocatable"])
cpp.make()
cpp.make_install()
on_build(build)
def pack_bison(composer):
composer.add_dir("bin", "bin")
composer.add_dir("lib", "lib")
composer.makedir("share")
composer.add_dir("share/aclocal", "share/aclocal")
composer.add_dir("share/bison", "share/bison")
package("bison")
dep("semi-libc @same-arch")
dep("gnu-m4")
on_pack(pack_bison)
link("bin/bison", "/bin/bison")
link("bin/yacc", "/bin/yacc", default=False)
Binary file not shown.
+4 -15
View File
@@ -4,8 +4,8 @@ import subprocess
from lib import arch
from lib.make import *
version("0.1.0")
source_url(f"file://{os.getcwd()}/empty.tar")
version("0.2.0")
source_url("https://gitea.semilabs.org/semios/libgcc-compat/archive/v0.2.0.tar.gz")
builddep("shortcut/c")
builddep(f"libunwind-dev @{arch.get_target()}")
@@ -13,19 +13,7 @@ builddep(f"linux-dev @{arch.get_target()}")
def build():
subprocess.run(
os.environ.get("CC", "cc").split(" ")
+ [
"-shared",
"-o",
"libgcc_s.so.1",
"-Wl,--no-as-needed",
"-lunwind",
"-Wl,--no-undefined",
"-Wl,-soname,libgcc_s.so.1",
],
check=True,
)
subprocess.run(["./build.sh"], check=True)
on_build(build)
@@ -34,6 +22,7 @@ on_build(build)
def pack(composer):
composer.makedir("lib")
composer.addfile("libgcc_s.so.1", "lib/libgcc_s.so.1")
composer.addfile("libatomic.so.1", "lib/libatomic.so.1")
package("libgcc-compat")