Skip to content

Commit

Permalink
Fixed libsodium building on Illumos / Solaris. (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
siepkes committed Aug 20, 2021
1 parent 689116f commit d443bc4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion link_libsodium.sh
Expand Up @@ -3,6 +3,7 @@
set -e

readonly CWD=$PWD
readonly OS=$(uname)
readonly LIBSODIUM_VERSION="1.0.17"

test -d tmp/libsodium || mkdir -p tmp/libsodium
Expand All @@ -12,7 +13,13 @@ cd tmp/libsodium
curl --retry 5 --retry-delay 0 -sL https://github.com/jedisct1/libsodium/releases/download/$LIBSODIUM_VERSION/libsodium-$LIBSODIUM_VERSION.tar.gz -o libsodium-$LIBSODIUM_VERSION.tar.gz
tar xfz libsodium-$LIBSODIUM_VERSION.tar.gz --strip-components=1

./configure --prefix $PWD
CONFIGURE_ARGS="--prefix ${PWD}"
if [[ "${OS}" == "SunOS" ]]; then
# On Illumos / Solaris libssp causes linking issues when building wal-g.
CONFIGURE_ARGS="${CONFIGURE_ARGS} --disable-ssp"
fi

./configure ${CONFIGURE_ARGS}
make && make check && make install

# Remove shared libraries for using static
Expand Down

0 comments on commit d443bc4

Please sign in to comment.