Skip to content
Snippets Groups Projects
Unverified Commit 0b151473 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #97 from sajattack/patch-3

change ssh recipe to use custom branch of newlib
parents c2216d76 7f5f69ed
No related branches found
No related tags found
No related merge requests found
VERSION=7.6p1 VERSION=7.6p1
TAR=http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$VERSION.tar.gz TAR=http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$VERSION.tar.gz
BUILD_DEPENDS=(zlib openssl newlib) BUILD_DEPENDS=(zlib openssl)
export AR="${HOST}-ar" export AR="${HOST}-ar"
export AS="${HOST}-as" export AS="${HOST}-as"
...@@ -24,7 +24,36 @@ function recipe_update { ...@@ -24,7 +24,36 @@ function recipe_update {
skip=1 skip=1
} }
function newlib_build {
rm -rf ../newlib
sysroot="${PWD}/../sysroot"
cd ..
git clone --recursive https://github.com/sajattack/newlib -b ssh-deps
cd newlib
pushd newlib/libc/sys
aclocal-1.11 -I ../..
autoconf
automake-1.11 --cygnus Makefile
popd
pushd newlib/libc/sys/redox
aclocal-1.11 -I ../../..
autoconf
automake-1.11 --cygnus Makefile
popd
CC= ./configure --target="${HOST}" --prefix=/
make all
make DESTDIR="$sysroot" install
cd ..
cp -r $sysroot/x86_64-unknown-redox/* $sysroot
rm -rf $sysroot/x86_64-unknown-redox
rm -rf newlib
cd build
}
function recipe_build { function recipe_build {
newlib_build
sysroot="${PWD}/../sysroot" sysroot="${PWD}/../sysroot"
export LDFLAGS="-L$sysroot/lib" export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include" export CPPFLAGS="-I$sysroot/include"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment