WASHINGTON (Reuters) - President Barack Obama said on Friday that globalization is a fact that "we're not going to be able to build a wall around" but that it was important to work to shape the process so that it benefits not just big companies but small firms as well.

The U.S. leader, speaking at a news conference with Mexican President Enrique Pena Nieto, said the Trans Pacific Partnership trade deal currently being worked on has taken into account some of the weaknesses and criticisms of the North American Free Trade Agreement and sought to address those.

(Reporting by Ayesha Rascoe; Writing by David Alexander; Editing by Eric Walsh)