ezili:~/tmp/contrib/query-loc-0.0.1> gcc -static bidon.c bidon.c: In function `main': bidon.c:5: warning: return type of `main' is not `int' ldd a.out ezili:~/tmp/contrib/query-loc-0.0.1> ldd a.out statically linked (ELF) ezili:~/tmp/contrib/query-loc-0.0.1> ./a.out found !
I tried with a more complicated example and it works as well.