diff options
Diffstat (limited to 'scripts/openssh.sh')
| -rw-r--r-- | scripts/openssh.sh | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/scripts/openssh.sh b/scripts/openssh.sh index 8ab8397..78e814f 100644 --- a/scripts/openssh.sh +++ b/scripts/openssh.sh @@ -8,13 +8,20 @@ if ! [ -d "$BUILD_DIR" ] ; then tar xfzv ${dist_dir}/openssh-$VERSION.tar.gz fi cd "$BUILD_DIR" -export CC=musl-gcc +# export CC=gcc export CFLAGS="-I$prefix/usr/include" -export CPPFLAGS="$CFLAGS" -export CXXFLAGS="$CFLAGS" -export LDFLAGS="-static -L$prefix/usr/lib/ -L$prefix/usr/include" +# export CPPFLAGS="$CFLAGS" +# export CXXFLAGS="$CFLAGS" +export LDFLAGS="-static -L$prefix/usr/lib/" export DESTDIR="$prefix" -./configure --prefix=/usr # --enable-static -# make -j$(numproc) -# make install +rm config.log || echo "" +make clean || echo "" +./configure \ + --host=$BUILD_TGT \ + --prefix=/usr \ + --without-openssl +cp Makefile Makefile.bak +sed -e"s@^DESTDIR.*\$@DESTDIR = $prefix@g" Makefile.bak > Makefile +make -j$(numproc) +make install-nokeys |
