#!/bin/bash
# Copyright (c) 2000-2020 Synology Inc. All rights reserved.

if [ -z ${INST_DIR+x} ]; then
	export INST_DIR=$TmpInstDir
fi

make DESTDIR="${INST_DIR}" install_runtime_libs install_ssldirs

rm -rf "${INST_DIR}"/usr/lib/{engines-1.1,pkgconfig,*.*a}

if [ "x$NOSTRIP" != "xNOSTRIP" ]; then
	$STRIP "${INST_DIR}"/usr/lib/libcrypto.so.1.1
	$STRIP "${INST_DIR}"/usr/lib/libssl.so.1.1
fi
