Trump endorsed Giuliani in the 2008 primaries (although he did also donate to Hillary). Then, later endorsed McCain over Obama.
So did Rush Limabaugh. And McCain supported Obama, he said so.