Remove duplicate -shared

The bug was introduced in a5480c125930c29202c56a51055d37cc65bd52c1