aboutsummaryrefslogtreecommitdiff
path: root/scripts/openssl.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-19 00:11:14 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-19 00:11:14 -0400
commit38de9074ff1effefa08bfc71471a97cd0658c10c (patch)
tree23a2d9b90c4e6fc8136ea05daa697cc36a94ca9c /scripts/openssl.sh
parent25a1cb19b213f7825fcc080a29991beeb70f6b93 (diff)
downloadmin-38de9074ff1effefa08bfc71471a97cd0658c10c.tar.gz
min-38de9074ff1effefa08bfc71471a97cd0658c10c.tar.xz
Attempts to build zlib, libressl, dropbear, and...
openssh with musl using the host's toolchain. I'm going to be moving to a toolchain specific to this system. Also changed how the kernel is installed, so it makes more sense. Fixed missing sources for many projects
Diffstat (limited to 'scripts/openssl.sh')
-rw-r--r--scripts/openssl.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/openssl.sh b/scripts/openssl.sh
new file mode 100644
index 0000000..b739989
--- /dev/null
+++ b/scripts/openssl.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+. ./.vars
+export DESTDIR=$prefix
+VERSION=1.0.2o
+APP_NAME="openssl"
+BUILD_DIR="${build_dir}/$APP_NAME-$VERSION"
+if ! [ -d "$BUILD_DIR" ] ; then
+ cd "$build_dir"
+ tar xfzv ${dist_dir}/$APP_NAME-$VERSION.tar.gz
+fi
+cd "$BUILD_DIR"
+export CC=musl-gcc
+export CFLAGS="-static -I$prefix/usr/include -I$base_dir/build/linux-4.16.2/include"
+export LDFLAGS="-static -L$prefix/usr/lib"
+export DESTDIR="$prefix"
+./configure --prefix=/usr --enable-shared=no
+make -j$(nproc)
+make install