Are you sure this isn't just to set the default setting?  That is if it weren't patches could setting TYPE=SHARED in the recipe override the STATIC default?  If so then this patch isn't needed.