J'essaye d'installer OpenSSL version OpenSSL_1_1_0f
de la source à un répertoire de vendeur car j'ai besoin de lier statiquement à lui. J'ai lu la page de compilation et d'installation pour savoir quels drapeaux pour ./config
je dois passer afin de l'installer avec un chemin relatif.OpenSSL ne s'installe pas avec le chemin relatif
Voici mon script d'installation:
#!/usr/bin/env bash
VENDOR_DIR="vendor"
VENDOR_LIB=$VENDOR_DIR/lib
mkdir -p $VENDOR_LIB
# OpenSSL library info.
OPENSSL_BRANCH="OpenSSL_1_1_0f"
OPENSSL_SOURCE="openssl-source"
echo "installing openssl"
git clone git://git.openssl.org/openssl.git $VENDOR_DIR/$OPENSSL_SOURCE -b $OPENSSL_BRANCH
pushd $VENDOR_DIR/$OPENSSL_SOURCE
./config --prefix=$VENDOR_LIB --openssldir=$VENDOR_LIB -O3
make
make test
make install
OpenSSL
installe à l'emplacement par défaut de /usr
, pas sous $VENDOR_LIB
, qui est l'endroit où j'ai besoin d'être installé. Quelle combinaison de drapeaux dois-je passer au script ./config
pour définir le répertoire d'installation cible?