replace --shared by --static