aboutsummaryrefslogtreecommitdiff
path: root/scripts/openssh.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-22 12:33:52 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-22 12:33:52 -0400
commit4b1cd7ad1e1463a45b444d066b49574a9b6ad04a (patch)
treed8d86e9f86827f5f6ea4fe68f5aece99fa78173c /scripts/openssh.sh
parentdb54ef567f4c724299ad1830d574052170247e04 (diff)
downloadmin-4b1cd7ad1e1463a45b444d066b49574a9b6ad04a.tar.gz
min-4b1cd7ad1e1463a45b444d066b49574a9b6ad04a.tar.xz
Sweeping changes, switching to musl-cross-make
Updated busybox-config to reflect the toolchain change Nginx and Openssh build and are now apart of the system. Runit is included, still need to install configuration files
Diffstat (limited to 'scripts/openssh.sh')
-rw-r--r--scripts/openssh.sh21
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