forked from Netflix/dynomite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·32 lines (24 loc) · 690 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#
# Dear Mac user, remember to setup your development environment. Install XCode
# then run the following commands:
#
# xcode-select --install
# brew install cmake autoconf libtool gcc automake openssl
# brew link openssl --force
#
OS=`uname -s`
if [ $OS == "Darwin" ] ; then
SSL_LIBDIR=`pkg-config --variable=libdir openssl`
SSL_INCLUDEDIR=`pkg-config --variable=includedir openssl`
else
sudo apt install -y autoconf libtool automake gcc openssl cmake
fi
#make clean
autoreconf -fvi
if [ $OS == "Darwin" ] ; then
./configure --enable-debug=log LDFLAGS="-L${SSL_LIBDIR}" CPPFLAGS="-I${SSL_INCLUDEDIR}"
else
./configure --enable-debug=log
fi
make -j8