#!/usr/bin/env bash

cd `dirname $0`;
cd ../src/main;

rm -r resources/linux-x86-64
mkdir -p resources/linux-x86-64

# *** Build libsass

make -C libsass clean

# We use:
# - BUILD="shared" to make sure that we build a shared system library
# - CXX=g++-4.6    to make sure that the library is linked against a version of
#                  libstdc++.so.6 that is old enough to be widely compatible
# - CC=gcc-4.4     same as for CXX but for libc.so.6
BUILD="static" make -C libsass -j5 CXX=g++-4.6 CC=gcc-4.4

#cp libsass/lib/libsass.so resources/linux-x86-64/libsass.so

# *** Build libjsass

cmake c
make -C c -j5 CXX=g++-4.6 CC=gcc-4.4
cp c/libjsass.so resources/linux-x86-64/libjsass.so

#!/usr/bin/env bash

cd `dirname $0`;
cd ../src/main;

rm -r resources/linux-x86-64
mkdir -p resources/linux-x86-64

# *** Build libsass

make -C libsass clean

# We use:
# - BUILD="static" to make sure that we build a static library
# - CXX=g++-4.6    to make sure that the library is linked against a version of
#                  libstdc++.so.6 that is old enough to be widely compatible
# - CC=gcc-4.4     same as for CXX but for libc.so.6
BUILD="static" make -C libsass -j5 CXX=g++-4.6 CC=gcc-4.4

#cp libsass/lib/libsass.so resources/linux-x86-64/libsass.so

# *** Build libjsass

cmake c
make -C c -j5 CXX=g++-4.6 CC=gcc-4.4
cp c/libjsass.so resources/linux-x86-64/libjsass.so

Fix BUILD="static" documentation in linux build script.
Fix BUILD="static" documentation in linux build script.
