How does Google treat back links coming from different country domains?

Suppose I want to optimize my page in UK, now having in mind about the most important factor that is relevancy, I'm getting back links from relevant pages but these pages have domains of other countries or you can say these pages are getting traffic from other countries (neither the domain is relevant nor the traffic is coming from targeted country).

Now if I get back links from those pages (From other country domains but relevant pages) then will Google optimize my page in that specific country from where I'm getting back links?