-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract build dependencies from autobuild script
- Loading branch information
1 parent
d41d28d
commit 37543d7
Showing
2 changed files
with
47 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
makeopts="-j $(grep ^flags /proc/cpuinfo | wc -l)" | ||
|
||
dependencies() { | ||
apt-get update | ||
|
||
apt-get install -y build-essential git libsnappy-dev libz-dev \ | ||
libtar-dev libb2-dev autoconf libtool libjansson-dev \ | ||
libhiredis-dev libsqlite3-dev libssl-dev libmbedtls-dev | ||
} | ||
|
||
libcurl() { | ||
git clone --depth=1 -b curl-7_62_0 https://github.com/curl/curl | ||
pushd curl | ||
autoreconf -f -i -s | ||
|
||
./configure --disable-debug --enable-optimize --disable-curldebug --disable-symbol-hiding --disable-rt \ | ||
--disable-ftp --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict \ | ||
--disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher \ | ||
--disable-manual --disable-libcurl-option --disable-sspi --disable-ntlm-wb --without-brotli --without-librtmp --without-winidn \ | ||
--disable-threaded-resolver \ | ||
--without-ssl --with-mbedtls | ||
|
||
make ${makeopts} | ||
make install | ||
ldconfig | ||
|
||
popd | ||
} | ||
|
||
capnp() { | ||
git clone https://github.com/opensourcerouting/c-capnproto | ||
pushd c-capnproto | ||
git submodule update --init --recursive | ||
autoreconf -f -i -s | ||
|
||
./configure | ||
make ${makeopts} | ||
make install | ||
ldconfig | ||
|
||
popd | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters