Amazon and Starbucks spend a lot of money to hire highly competent tax attorneys and other staff to minimize their payment of taxes. Instead of complaining, countries need to pay more money to hire even brighter people to write better tax laws. Citizens of these countries need to elect officials who will do the hiring and not have obstructive laws that prohibits the payment of the large salaries and fees necessary to…
But what can you do if countries like Ireland or Malta just allows tax evasion?
The EU should have more statutory authority for laws like this just as in the case of the US Federal Government over State governments.
At any rate, don't blame Amazon, Starbucks, but rather blame wealthy governments that refuse to spend the money for talent that can fix the laws (or iteratively "refix" them).