manually switch -c at compilation and linking stage.