redox/recipes/libs/libstdcxx/recipe.toml
2026-04-01 08:58:11 +07:00

10 lines
278 B
TOML

[build]
template = "custom"
script = """
# Avoid replacing host libstdc++ when using "host:"
if [ "$TARGET" != "$COOKBOOK_HOST_TARGET" ]; then
mkdir -p "${COOKBOOK_STAGE}/usr/lib"
cp -av ${COOKBOOK_HOST_SYSROOT}/${GNU_TARGET}/lib/libstdc++.so* ${COOKBOOK_STAGE}/usr/lib/
fi
"""