U.S. President Donald Trump holds a bilateral meeting with Taoiseach Leo Varadkar at Shannon Airport on June 5, 2019 in Shannon, Ireland | Pool/Getty Images Trump to Ireland: Post-Brexit border ‘wall’ will work out well US president says Brexit ‘should be good’ for Ireland.

Donald Trump wished Irish Prime Minister Leo Varadkar well with his country's border "wall" after Brexit, ahead of a one-to-one meeting between the two leaders.

The U.S. president flew to Ireland from a D-Day commemoration ceremony in Portsmouth on the south coast of England Wednesday — the culmination of his state visit to the U.K.

During a brief exchange before his meeting with Varadkar at Shannon Airport, near Ireland's west coast, Trump said to Varadkar: "Probably you'll ask me about Brexit because I just left some very good people who are very involved with Brexit."

"I think it will all work out very well, and also for you with your wall, your border," Trump added before drawing parallels with the U.S. southern border with Mexico. "We have a border situation in the United States, and you have one over here. But I hear it's going to work out very well here."

Varadkar replied, "I think one thing we want to avoid, of course, is a wall or border between us."

The Irish border has proved a major sticking point in finding a resolution to Brexit. The backstop solution contained in the Withdrawal Agreement signed off by U.K. Prime Minister Theresa May's government in November was rejected by MPs three times.

"I know that's a big point of contention with respect to Brexit," said Trump. "I'm sure it's going to work out very well. I know they're focused very heavily on it."

In response to a question about whether Brexit would be bad for Ireland, Trump said, "I think it should be good."

At the Portsmouth event, Trump and 15 other world leaders — including May, Germany's Angela Merkel and France's Emmanuel Macron — signed a proclamation marking the sacrifice of those killed and injured and pledging to promote shared values of democracy, tolerance and the rule of law.

"We commit to work constructively as friends and allies to find common ground where we have differences of opinion and to work together to resolve international tensions peacefully," the proclamation reads.