make sure -nobs not overrided by -shared option.