Add --disable-shared to --static ./configure option. To be consistent with --enable-shared alternative to --shared option.