I can't see how -xO2 or -xstrconst would have any effect on linking. It seems to me that it would be safe to not include them in any link command.