This is not the best way to link statically. Did you try just -static
> g++ testprogramoptions.o -static-libgcc
> -Wl,-Bstatic -L/u/neetug/Projects/performance/perfstat_cluster/lib
> -lboost_program_options-gcc41-mt -lpthread -o testprogramoptions
option, without -static-libgcc and -Wl,-Bstatic?