Shirk means associating other partners with Allah, the Almighty in worship. Shirk basically is polytheism, i.e., the worship of others along with Allah Almighty. It also implies attributing Divine attributes to any other besides Allah. It particularly implies associating partners in worship with Allah or believing that the source of power, harm or blessings is from others besides Allah.
Abiding by the laws enacted by government does not fall under the above mentioned concept of shirk. Generally speaking, Islam does encourage Muslims to be loyal and faithful to their countries and to serve their community to the best of their ability. In the same line, Muslims living in non-Muslim states should cooperate with other citizens of that state to serve and help their communities to be better and achieve prosperity.
Abidance by the laws of the country is a duty that Muslims should carry out as long as there is no conflict with the teachings of Islam. In case of conflict between some laws and the Shari`ah-based teachings Muslim in that country should resort to legal channels and peaceful means that are guaranteed by the laws of most countries to solve the problems they face.