Set emus as dynamically linked

This commit is contained in:
Wildan M 2025-08-24 00:57:57 +07:00
parent f9d74ffc1e
commit 63f23348af
4 changed files with 9 additions and 6 deletions

View File

@ -152,7 +152,7 @@ diff -ruwN git-2.13.1/git-compat-util.h source/git-compat-util.h
+
+#ifndef DEV_NULL
+#if defined(__redox__)
+#define DEV_NULL "null:"
+#define DEV_NULL "/scheme/null"
+#else
+#define DEV_NULL "/dev/null"
+#endif

View File

@ -14,13 +14,14 @@ dependencies = [
]
template = "custom"
script = """
DYNAMIC_INIT
export CFLAGS="-I${COOKBOOK_SYSROOT}/include/SDL"
export CPPFLAGS="-I${COOKBOOK_SYSROOT}/include/SDL"
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
export LDFLAGS+=" -lorbital"
COOKBOOK_CONFIGURE_FLAGS+=(
--disable-opengl
--disable-sdltest
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
--with-sdl
)
cookbook_configure

View File

@ -16,12 +16,12 @@ dependencies = [
"libpng",
]
script = """
export LDFLAGS="-static"
DYNAMIC_INIT
COOKBOOK_CONFIGURE="${COOKBOOK_SOURCE}/configure"
export LDFLAGS+=" -lorbital"
COOKBOOK_CONFIGURE_FLAGS=(
--host="${TARGET}"
--prefix=""
--prefix="/usr"
--with-sdl-prefix="${COOKBOOK_SYSROOT}"
--with-freetype2-prefix="${COOKBOOK_SYSROOT}"
--with-png-prefix="${COOKBOOK_SYSROOT}"

View File

@ -1,3 +1,5 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/orbital.git"
[build]
template = "cargo"