From c1bd151d4ea844f6ea8ec794aa210187b3a8749d Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 24 Apr 2025 17:34:47 -0600 Subject: [PATCH] Add recipe for libstdc++ --- recipes/dev/rust/recipe.sh | 2 +- recipes/libs/libpng/recipe.toml | 3 --- recipes/libs/libstdc++/recipe.toml | 6 ++++++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 recipes/libs/libstdc++/recipe.toml diff --git a/recipes/dev/rust/recipe.sh b/recipes/dev/rust/recipe.sh index 33b80e486..e01d02483 100644 --- a/recipes/dev/rust/recipe.sh +++ b/recipes/dev/rust/recipe.sh @@ -1,6 +1,6 @@ GIT=https://gitlab.redox-os.org/redox-os/rust.git BRANCH=redox-2024-05-11 -BUILD_DEPENDS=(llvm18-shared zlib libgcc) +BUILD_DEPENDS=(llvm18-shared zlib) DEPENDS="gcc13 cargo" PREPARE_COPY=0 diff --git a/recipes/libs/libpng/recipe.toml b/recipes/libs/libpng/recipe.toml index 8c2324f56..3fedf1c51 100644 --- a/recipes/libs/libpng/recipe.toml +++ b/recipes/libs/libpng/recipe.toml @@ -21,6 +21,3 @@ COOKBOOK_CONFIGURE_FLAGS=( ) cookbook_configure """ - -[package] -shared_deps = ["libgcc", "zlib"] diff --git a/recipes/libs/libstdc++/recipe.toml b/recipes/libs/libstdc++/recipe.toml new file mode 100644 index 000000000..232733bed --- /dev/null +++ b/recipes/libs/libstdc++/recipe.toml @@ -0,0 +1,6 @@ +[build] +template = "custom" +script = """ +mkdir -p "${COOKBOOK_STAGE}/lib" +cp -av ${COOKBOOK_HOST_SYSROOT}/${GNU_TARGET}/lib/libstdc++.so* ${COOKBOOK_STAGE}/lib/ +"""