Both achieve the same result although with considerable differences! The first is quick, easy and less critical on accuracy also simple fabrication although weather penetration could be an issue!
The second is far more complicated requiring accurate drilling and tapping of both legs / body and spacer but could have decent weather proofing!
Personally i'd go with the first!