This is to build statically linked yet compact binaries for Spot tools for Linux, Windows and OSX.
./configure --disable-shared --disable-python --disable-devel --enable-optimizations --prefix ~/spot.linux make LDFLAGS=-all-static make install-strip
MinGW GCC misses implementation for threads (at least for MinGW GCC v9.3.0). This results in error when building spot/bricks/brick-shmem
which uses std::thread
. A workaround:
spot/bricks/
mingw.invoke.h
and mingw.thread.h
spot/bricks/brick-shmem
replace #include <thread>
by #include "mingw.thread.h"
./configure --disable-shared --disable-python --disable-devel --enable-optimizations --host x86_64-w64-mingw32 --prefix ~/spot.windows make LDFLAGS=-all-static make install-strip
./configure --disable-shared --disable-python --disable-devel --enable-optimizations --prefix ~/spot.osx make LDFLAGS="-all-static -static-libstdc++ -static-libgcc" make install-strip