Adding the --shared flag to generate shared resources