Set rpath and add more deps to cookbook

This commit is contained in:
Wildan M 2026-04-02 06:15:48 +07:00
parent 1a3703c753
commit eaa211dfbc
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
3 changed files with 5 additions and 3 deletions

View File

@ -40,7 +40,6 @@ export CFLAGS_FOR_TARGET="${CPPFLAGS}" CXXFLAGS_FOR_TARGET="${CPPFLAGS}" LDFLAGS
export CC_FOR_BUILD="$CC_WRAPPER gcc" CXX_FOR_BUILD="$CC_WRAPPER g++"
unset CFLAGS CPPFLAGS LDFLAGS
COOKBOOK_CONFIGURE_FLAGS+=(
--with-sysroot=/
--with-gmp="${COOKBOOK_SYSROOT}/usr"
--with-mpfr="${COOKBOOK_SYSROOT}/usr"
--with-mpc="${COOKBOOK_SYSROOT}/usr"

View File

@ -25,7 +25,6 @@ cc = "COOKBOOK_GNU_TARGET-gcc"
cxx = "COOKBOOK_GNU_TARGET-g++"
ar = "COOKBOOK_GNU_TARGET-ar"
linker = "COOKBOOK_GNU_TARGET-gcc"
rpath = false
crt-static = false
llvm-config = "COOKBOOK_SYSROOT/bin/llvm-config"

View File

@ -27,5 +27,9 @@ dependencies = [
"pkgar",
"python312",
"sed",
"wget",
# toolchains are dynamically linked, so this is needed
"libgmp",
"libmpfr",
"mpc",
"curl",
]