From e68452e174f74f2b643f858587bbd17c4769b027 Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal Date: Thu, 15 Oct 2015 06:04:45 -0700 Subject: [PATCH] [release-builds] Fix the FreeBSD builds. Fixes tstack/lnav#264 --- release/vagrant-static/provision.sh | 85 ++++++++++++++++++----------- 1 file changed, 53 insertions(+), 32 deletions(-) diff --git a/release/vagrant-static/provision.sh b/release/vagrant-static/provision.sh index 9da87eec..a5bd26a7 100755 --- a/release/vagrant-static/provision.sh +++ b/release/vagrant-static/provision.sh @@ -49,6 +49,22 @@ done OS=$(uname -s) + +(cd readline-6.3 && ./configure --prefix=${FAKE_ROOT} && make && make install) + +(cd bzip2-1.0.6 && make install PREFIX=${FAKE_ROOT}) + +(cd sqlite-* && + ./configure --prefix=${FAKE_ROOT} \ + CFLAGS="${SQLITE_CFLAGS}" \ + && \ + make && make install) + +(cd openssl-* && + ./config --prefix=${FAKE_ROOT} -fPIC && + make && + make install) + if test x"${OS}" != x"FreeBSD"; then (cd ncurses-5.9 && \ ./configure --prefix=${FAKE_ROOT} \ @@ -70,6 +86,25 @@ if test x"${OS}" != x"FreeBSD"; then CXX="g++44" \ && \ make && make install) + + (cd zlib-1.2.8 && ./configure --prefix=${FAKE_ROOT} && make && make install) + + (cd libssh2-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssl-prefix=/home/vagrant/fake.root \ + --with-libz-prefix=/home/vagrant/fake.root \ + "LDFLAGS=-ldl" && + make && + make install) + + (cd curl-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssh2=${FAKE_ROOT} \ + --with-ssl=${FAKE_ROOT} \ + --with-zlib=${FAKE_ROOT} \ + "LDFLAGS=-ldl" && + make && + make install) else (cd ncurses-5.9 && \ ./configure --prefix=${FAKE_ROOT} \ @@ -87,38 +122,24 @@ else --enable-utf \ && \ make && make install) -fi - -(cd readline-6.3 && ./configure --prefix=${FAKE_ROOT} && make && make install) - -(cd zlib-1.2.8 && ./configure --prefix=${FAKE_ROOT} && make && make install) - -(cd bzip2-1.0.6 && make install PREFIX=${FAKE_ROOT}) -(cd sqlite-* && - ./configure --prefix=${FAKE_ROOT} \ - CFLAGS="${SQLITE_CFLAGS}" \ - && \ - make && make install) + (cd zlib-1.2.8 && ./configure --prefix=${FAKE_ROOT} "CFLAGS=-fPIC" \ + && make && make install) -(cd openssl-* && - ./config --prefix=${FAKE_ROOT} -fPIC && - make && - make install) - -(cd libssh2-* && - ./configure --prefix=${FAKE_ROOT} \ - --with-libssl-prefix=/home/vagrant/fake.root \ - --with-libz-prefix=/home/vagrant/fake.root \ - "LDFLAGS=-ldl" && - make && - make install) + (cd libssh2-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssl-prefix=/home/vagrant/fake.root \ + --with-libz-prefix=/home/vagrant/fake.root \ + && + make && + make install) -(cd curl-* && - ./configure --prefix=${FAKE_ROOT} \ - --with-libssh2=${FAKE_ROOT} \ - --with-ssl=${FAKE_ROOT} \ - --with-zlib=${FAKE_ROOT} \ - "LDFLAGS=-ldl" && - make && - make install) + (cd curl-* && + ./configure --prefix=${FAKE_ROOT} \ + --with-libssh2=${FAKE_ROOT} \ + --with-ssl=${FAKE_ROOT} \ + --with-zlib=${FAKE_ROOT} \ + "CFLAGS=-fPIC" && + make && + make install) +fi