User Tools

Site Tools


devel:backend:spot

Building Spot

This is to build statically linked yet compact binaries for Spot tools, both for Linux and Windows.

Static binaries for Linux

Option 1:

./configure --disable-shared --disable-python --disable-devel --enable-optimizations --prefix ~/spot
make LDFLAGS=-all-static
make install-strip

Option2:

./configure LDFLAGS="--static -s" --disable-python --prefix ~/spot
make CXXLD="g++ -all-static"
make install

Cross-compile for Windows using MinGW

Option 1:

# Extra ./cofigure parameter for static linking (possibly redundant):
# LDFLAGS="-static-libgcc -static-libstdc++ -Wl,-Bstatic,--whole-archive -Wl,-lwinpthread -Wl,--no-whole-archive"
./configure --disable-shared --disable-python --disable-devel --enable-optimizations --host i686-w64-mingw32 --prefix ~/spot.win
make LDFLAGS=-all-static
make install-strip

Option 2:

./configure LDFLAGS="--static -s" --disable-python --prefix ~/spot.win --host x86_64-w64-mingw32
make CXXLD="x86_64-w64-mingw32-g++ -all-static"
make install