(In reply to Michal Koutn��� from comment #0) > Dynamic build like: > > cc -pthread --std=gnu99 -g -c -o minimal.o minimal.c > > cc minimal.o -static -pthread -lm -lrt -o minimal Copy-paste mistake, there's no -static in both. > cc -pthread --std=gnu99 -g -c -o minimal.o minimal.c > cc minimal.o -pthread -lm -lrt -o minimal