Wooden takings post? Over time my wooden gate post has worked it's self loose from...

Over time my wooden gate post has worked it's self loose from the brick wall. What would be the best method to fix the post back to the wall? It's not the post that holds the gate.
FISCHER SCREWS


Instead of taking the chance of cracking bricks of mortar, it would be better to place brace in ground next to concrete and fasten post to brace to set in place. It is easier to amend post if damaged or twisted and it won't damage house more to replace it. remove the existing fittings and re drill the holes lower down, use some rawl plugs and screw it adjectives tight again
Answers:    If nearby are not bolts going all the way through both post and brick wall, consequently that would be the optimum solution, otherwise lag bolt it to the brick with front anchors.