Installing a fence post next to the house

i’m planning on installing a vinyl fence from the side of my house out to an existing vinyl fence running perpandicular. I’m not sure of the best way to secure the post next to my house. i dont want to fasten the post directly to the house. The problem is that i have a fieldstone foundation and when I dig the post hole, i cant get the post close enough to the house because of how uneven the stones are. Should i just pour a footing and fasten the post like i would if the post were for a deck?