mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 04:14:17 +08:00
commit
0bbc25db44
22
recipes/cargo/recipe.sh
Normal file
22
recipes/cargo/recipe.sh
Normal file
@ -0,0 +1,22 @@
|
||||
GIT=https://github.com/ids1024/cargo.git
|
||||
BRANCH=redox
|
||||
|
||||
function recipe_build {
|
||||
if [ -d openssl-redox ]
|
||||
then
|
||||
git -C openssl-redox pull
|
||||
else
|
||||
git clone https://github.com/ids1024/openssl.git -b redox --depth 1 openssl-redox
|
||||
fi
|
||||
|
||||
rm -rf openssl-prefix
|
||||
mkdir openssl-prefix
|
||||
|
||||
pushd openssl-redox
|
||||
./Configure no-shared no-dgram redox-x86_64 --prefix="$PWD/../openssl-prefix"
|
||||
make -j"$(nproc)"
|
||||
make install
|
||||
popd
|
||||
|
||||
export OPENSSL_DIR=$PWD/openssl-prefix
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user