Has anyone managed to get miner (
https://github.com/cryptozoidberg/cpuminer-multi) built statically?
I've tried various linux distros (CentOS bleh, Ubuntu), various combinations of curl (statically built) etc and not having any luck at all..
[root@cpt-cloud001 cpuminer-multi]# make
make all-recursive
make[1]: Entering directory `/root/cpuminer-multi'
Making all in compat
make[2]: Entering directory `/root/cpuminer-multi/compat'
Making all in jansson
make[3]: Entering directory `/root/cpuminer-multi/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/cpuminer-multi/compat/jansson'
make[3]: Entering directory `/root/cpuminer-multi/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/cpuminer-multi/compat'
make[2]: Leaving directory `/root/cpuminer-multi/compat'
make[2]: Entering directory `/root/cpuminer-multi'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/curl/include -O3 -march=native -fPIC -I/tmp/curl/include -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
mv -f .deps/minerd-cpu-miner.Tpo .deps/minerd-cpu-miner.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/curl/include -O3 -march=native -fPIC -I/tmp/curl/include -MT minerd-util.o -MD -MP -MF .deps/minerd-util.Tpo -c -o minerd-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/minerd-util.Tpo .deps/minerd-util.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/curl/include -O3 -march=native -fPIC -I/tmp/curl/include -MT minerd-wildkeccak.o -MD -MP -MF .deps/minerd-wildkeccak.Tpo -c -o minerd-wildkeccak.o `test -f 'wildkeccak.c' || echo './'`wildkeccak.c
wildkeccak.c:106:2: warning: #warning using SSE2 optimizations
mv -f .deps/minerd-wildkeccak.Tpo .deps/minerd-wildkeccak.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/tmp/curl/include -O3 -march=native -fPIC -I/tmp/curl/include -MT minerd-xmalloc.o -MD -MP -MF .deps/minerd-xmalloc.Tpo -c -o minerd-xmalloc.o `test -f 'xmalloc.c' || echo './'`xmalloc.c
mv -f .deps/minerd-xmalloc.Tpo .deps/minerd-xmalloc.Po
gcc -std=gnu99 -O3 -march=native -fPIC -I/tmp/curl/include -pthread -pie -static -L/tmp/curl/lib -o minerd minerd-cpu-miner.o minerd-util.o minerd-wildkeccak.o minerd-xmalloc.o -L/tmp/curl/lib -lcurl -lrt compat/jansson/libjansson.a -lpthread
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/crtbeginT.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [minerd] Error 1
make[2]: Leaving directory `/root/cpuminer-multi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer-multi'
make: *** [all] Error 2