Don't switch on -shared if the user specifies -r

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>